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

Building a Counter
25857 Building a Counter http://www.phpfreaks.com/tutorials/27/0.php 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. PHP > Tips and Tutorials > Counters Oct 15, 2006

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

Bookmark Building a Counter:


Other links at PHP > Tips and Tutorials > Counters
This script gives you all required code to add a simple hit counter onto your webpage, with the option to make it invisible.
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:

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:

Learn how to make a simple counter. All you need is access to PHP and be able to chmod a directory. We're going to save the amount of hits in a .dat file, so you don't even need a mySQL database. First off, you have create a directory and CHMOD it 777 so PHP can write the counter.dat file.
Category:

Adding a basic PHP Text Counter to your website
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: 735
Mailing List Subscribers: 2043
Unique Outgoing Hits: 228392

Pagerank Statistics
PR 10
2 site(s)
PR 9
9 site(s)
PR 8
38 site(s)
PR 7
291 site(s)
PR 6
827 site(s)
PR 5
2012 site(s)

PHP News