Site Sessions: Online/Offline - help?
| From: | Richard | Date: | Fri, 20 Apr 2001 12:46:14 +0000 |
| Subject: | Site Sessions: Online/Offline - help? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49550@lists.php.net to get a copy of this message | ||
Greetings. (the thread was too far down to be read by anyone)
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