Posted by Michael Fesser on 07/13/07 22:02
..oO(Ciaran)
>Hi I've seen this a few places - The site lists off the number of
>people (not logged in) currently browsing the site. How can I do this
>with php / mySQL please?
You can use rand().
Such "statistics" are never accurate. HTTP is a stateless protocol,
there's no such thing like a "currently online user". A user comes,
sends a request, gets a response and is gone. Next request, next user.
Micha
[Back to original message]
|