If you're tired of free web counter services that just make you copy and paste the code for an image of some numbers into your web site, this article is for you. It will explain in easy steps how you can create a professional, and invisible, web counter. The numbers appear as normal text, no more ugly looking pictures! You will also learn how to use a cookie, ensuring that the same visitor isn't counted twice in, say, 2 hours, as well as a cookie so that you can visit your own site without distorting statistics.
Step 1: Create the file for the number to be stored in.
This counter works by storing a number in a text file, then reading or updating it accordingly. So, create a text file called "counter.txt" somewhere on your web server. Make sure the file isn't read only (you'll probably have to email your provider and ask them to grant it write access.) Put the value "0" [zero] in the text file, with no spaces before or after it.