Aureole Posted February 4, 2008 Share Posted February 4, 2008 How would one approach something like this? The only (extremely bad) way I can think, is running a cron job/task every... x minutes and do a query to count how many members in the members table are currently online. If it's higher than in the past then update a table, otherwise leave it. I don't want to do it like that, if there's another way. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/89359-solved-most-users-ever-online/ Share on other sites More sharing options...
trq Posted February 4, 2008 Share Posted February 4, 2008 You wouldn't need to do it in a cron job. Simply do it whenever someone logs in. Quote Link to comment https://forums.phpfreaks.com/topic/89359-solved-most-users-ever-online/#findComment-457577 Share on other sites More sharing options...
Aureole Posted February 4, 2008 Author Share Posted February 4, 2008 Good thinking, thanks a lot. Quote Link to comment https://forums.phpfreaks.com/topic/89359-solved-most-users-ever-online/#findComment-457578 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.