ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

1
Date Submitted Wed. Mar. 1st, 2006 5:13 PM
Revision 1
Beginner Pineriver
Tags Guests | Online
Comments 0 comments
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.