The way this counter works is it creates a cookie on the user's computer with their IP and it updates the count according to the status of that cookie. If the cookie is present and the IP in the cookie is the same as the user's current IP then the script knows the user has already been there and it does nothing or if it is present, but has an IP different than the user's current IP or is not present the script knows that the user is either new or was there before, but the cookie has expired so it then updates the count.
Grab some counter artwork , we suggest counterart for some fine examples
Create a file in this example it is called counter.txt and enter a starting number.
Upload this to your server and on UNIX servers chmod to 755.
Copy the following code into a new file called grcounter.php
Insert the following code on the page where you wish the counter to appear.
In this tutorial you will need to create two files. The first one is a text file called "counter.txt" that will be used to keep track of the number of visitors. The second file is a php file called "visit.php" that will be used to add to the number of visitors. So create those two files on your website both in the main directory. Open up the "counter.txt" file in notepad or any other text editor that you prefer to use and type in the number zero and save the file.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.