newbtophp Posted August 3, 2010 Share Posted August 3, 2010 I've seen countless forum software/cms which have such feature, I understand how they count the total users online (as theirs a row which says if a user is online or not (boolean), and then its all counted using mysql_num_rows() to get the total) However I don't get how they'd display the number of Guests? (as I don't think they'd log them woul'dnt that be messy/tedious?) Quote Link to comment https://forums.phpfreaks.com/topic/209637-x-users-and-x-guests-online/ Share on other sites More sharing options...
trq Posted August 3, 2010 Share Posted August 3, 2010 as I don't think they'd log them woul'dnt that be messy/tedious? They do indeed log them. Quote Link to comment https://forums.phpfreaks.com/topic/209637-x-users-and-x-guests-online/#findComment-1094459 Share on other sites More sharing options...
sspoke Posted August 3, 2010 Share Posted August 3, 2010 Yeah there is no logical way around this other then logging each guest's ip to some table and timestamp of accessed time. Then weed off the guests that exceeded the timestamp to get a fresher count. Quote Link to comment https://forums.phpfreaks.com/topic/209637-x-users-and-x-guests-online/#findComment-1094467 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.