users online
Ever wanted to add that script to your site where it says how many people are navigating at the moment? Almost everyone has it now. And you can, too! First, download the files here. It should have 4 files inside: online.txt, counter.txt, online.php and counter.php. Upload them to a folder called php. With whatever, open online.php first. The third line will say '$file = "/home/user/public_html/php/online.txt";'. Change '/home/user/public_html/php/online.txt' to the address of your online.txt file. Then save it and close it. Now open counter.php. Inside there should be a line that says: $count = ("/home/user/public_html/php/counter.txt");. Change '/home/user/public_html/php/counter.txt' to the address of your counter.txt. Then save and close. Do not edit the .txt files! To test it to see if it works, go to both http://YOURDOMAIN.com/php/online.php and http://YOURDOMAIN.com/php/counter.php. Instead of a line of errors, you should see the number 1. If you see a line of errors, it means that you didn't put the right addresses. You should go back and do that. Now to show how many people are on your page, use this code:Just remember to change the addresses in quotes to the address of online.php and counter.php. And you're all set! If you have any problems, just email me!
