faqts : Computers : Programming : Languages : PHP : Common Problems : Visitor Information

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

19 of 24 people (79%) answered Yes
Recently 6 of 10 people (60%) answered Yes


How would I mke a "Who's Online" window in a chat room I am making?

Feb 8th, 2002 12:33
Michael Wales, Matt Webb,

I would make a table within MySQL that records the time a user last did 
something. Then just limit the Whos' Online to user's that have done 
something within that last 5 or so minutes.
This is really the only way to do it in PHP, because it's server-side 
and you can't get the client to send info to the server without them 
refreshing it.