FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

how i can to: "X users are online now"?

 


roeenoy
how i can to: "X users are online now"? by using php and mysql table?

if you have the right code please post it here..

thank you
AftershockVibe
As HTTP is a stateless protocol you can never get exact results however the easiest, and the way most forum software does it, is to do the following;

1.) On each page load, write a timestamp and the destination IP to the table.
2.) To count the number of users query for the number of unique IPs recorded within the last x minutes.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.