davelr45 Posted July 18, 2007 Share Posted July 18, 2007 Our site is hosting a live video session and I need to limit the amount of people who can see the video at the same time due to bandwidth. I've never done anything like this before and I dont like to "re-invent the wheel" if I dont have to, but I cant find anything out there. Anyone done this before??? Link to comment https://forums.phpfreaks.com/topic/60668-limit-users-on-page/ Share on other sites More sharing options...
Hypnos Posted July 19, 2007 Share Posted July 19, 2007 Log requests for the page the video is on in a database. Do a COUNT query WHERE the time visited is near NOW (like 30 minutes). Do an IF against that number. Occasionally clean the table of the old records. Link to comment https://forums.phpfreaks.com/topic/60668-limit-users-on-page/#findComment-301894 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.