Re: Site Sessions: Online/Offline - help?

From: Date: Thu, 19 Apr 2001 11:50:02 +0000
Subject: Re: Site Sessions: Online/Offline - help?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-49354@lists.php.net to get a copy of this message
Greetings. I am having some problems with the code itself! I have done like so, that whenever peopel wishes to see the "onliners", I start a function called DelOld(). This will not decrease server speed, nor create conflicts when writing to temporary files and so forth. Now, I tried to gather the following into an exploded array: // the date output $date_output = date("Y-m-d-H-i-A"); As you see, I've seperated all with a "-" so I can simply call [0], [1], [2],... if I want something. Now, How can I compare if a user is away for like 10 minutes, or 30 minutes? I have a function called GetLoggDateofUser($Username) which will retreive the $date_output, but with colons and spaces, like so: date("Y-m-d H:i A"). Do you or anyone else have any suggestions? - Richard

« previous php.general (#49354) next »