Visitors online

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Visitors online

Post by s.dot »

I need an idea of what direction to go in to count the number of visitors online on my website.

I have a variable $numonline that is the number of registered users online. So I would like to subtract this from the total number of people online.

$totalonline - $numonline = numvisitors

But I don't have an idea of how to code it.

It's probably so simple I'm over looking it.

Any help?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

search with this: "whos OR users +online" sans quotes.
Post Reply