NYCPHP Meetup

NYPHP.org

[nycphp-talk] Hmm, how to count 'online' users?

Adam Maccabee Trachtenberg adam at trachtenberg.com
Thu Aug 12 02:48:50 EDT 2004


On Wed, 11 Aug 2004, Joseph Crawford Jr. wrote:

> oh and with PHP 5 you can use static properties so you could do it
> that way but it wouldnt decrement unless the person logged out, i
> think going with the session way is best.

Static properties only persist for the life of a single request. So
while they're shared among all instances of a class, they can't really
be used in this case.

-adam

-- 
adam at trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!



More information about the talk mailing list