Hey, I have seen this before but I am not sure how to do it:
"You are 1 of (number of users) active users"
How would I go about doing this? Thanks.
This goes along the lines of something I've been wondering about. In ASP, you can write a function which is called each time a session is terminated. I can't think of any easy way to achieve the same effect in PHP. Any ideas?
-Keegan
hi there
with the HTTP protocol y will have some problems in doing this. HTTP is a stateless protocol. that means: the server does not know if the user is still viewing the page he has requested. but if y are working with sessions y could say after five minutes inactiviti the session dies and the user is "offline". to track the "active" sessions y could use a database-table or a textfile.
take a look at http://www.phpwelt.de/scripts/uo_en.php3 this script makes what y are searching for.
greets from swiss svobi