Below are revisions for this snippet.
Guests Online
Outputs the number of guests online / people browsing the page.
Using PHP and a text database.
Copy and paste this code into your PHP source code where you would like the count number to appear.
If you would like it in more then one place, just include the code once and echo out $Online_Guests
Create a file named 'online.txt' and upload it to the same drive as the web page, set permissions to read and write.
The "$TimeoutOnlineMinutes" is the amount of minutes to timeout guests, you may want to change this to a lower amount if your site is viewed often.





