NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes

Visitor Rating

Simple Hit Counter Script
25848 Simple Hit Counter Script http://auroranet.fre3.com/tutorial.php?id=9 Simple Hit Counter Script PHP > Tips and Tutorials > Counters Oct 15, 2006

Write a Review   Add to My Favorite   Refer it to Friend   Report Broken Link  



Other links at PHP > Tips and Tutorials > Counters
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.
Category:

This tutorial will show you how to count the hits you get! Using a text file
Category:

For this hit counter we are going to use MySQL, PHP and PHP's awesome built in support for sessions. I want to stress the avoidance of cookies for something like this because you are going to be forcing this upon each user's browser and the world of Microsoft users are shifting towards Internet Explorer 6 which has created some great headaches for webmasters that like to use cookies. With PHP's sessions the cookie is stored on the web server and not the user's computer which is a benefit because now the webmaster has control, not the user's finicky web browser.
Category:

Site counter is one of the earliest script I ever created. Most books and sites on PHP always teach site counter. So not to miss this trend, PhpMagix will also discuss on site counter, but since PhpMagix 'is Magix', I will not only discuss on simple counter, but also on visits counter, and image counter (a la bravenet).
Category:

Simple Hit Counter Script
Category:




Main Category
165
2028
756
275
169
1801
1074
892
1127
7088
70
874
58
2145
170

Join Mailing List
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.



Top 10
Directory Statistics

Links: 18673
Categories: 1275
Registered Users: 537
Mailing List Subscribers: 2031
Unique Outgoing Hits: 192732

Pagerank Statistics
PR 10
2 site(s)
PR 9
9 site(s)
PR 8
28 site(s)
PR 7
243 site(s)
PR 6
772 site(s)
PR 5
1845 site(s)

PHP News