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

MySQL PHP Hit Counter
25858 MySQL PHP Hit Counter http://www.phpfreaks.com/tutorials/6/0.php 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. PHP > Tips and Tutorials > Counters Oct 15, 2006

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

Bookmark MySQL PHP Hit Counter:


Other links at PHP > Tips and Tutorials > Counters
Here we are going to design simple image based hit counter to keep track of visitor. We are going to keep record in a text file so we do need any kind of database. We are going to keep whole record in counter.txt file. In the same directory where you putting the PHP file for this counter, create a file 'counter.txt' and CHMOD it to 0777. Initially put 0 in it and save the file. As this counter is image based we are putting our Image in "imgs" folder.
Category:

In this tutorial you will learn how to make the tables on mysql database and how to program with examples the counter script.
Category:

This tutorial will show your how to create a visitor log that logs all your visitor details
Category:

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:

Learn how to make a PHP hit counter using PHP and MySql. This is a basic text counter that will count every time your page is loaded...
Category:




Main Category
185
2034
801
286
174
1803
1129
909
1161
7393
70
905
59
2200
174

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: 19263
Categories: 1275
Registered Users: 734
Mailing List Subscribers: 2043
Unique Outgoing Hits: 228304

Pagerank Statistics
PR 10
2 site(s)
PR 9
9 site(s)
PR 8
37 site(s)
PR 7
292 site(s)
PR 6
825 site(s)
PR 5
2015 site(s)

PHP News