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  

Browse a Listing

Subscribe to this category

Top > PHP > Tips and Tutorials > Counters

Popular Tags

Free Script links
Sort By :
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.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 15, 2006 Hits: 4 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

This script assumes that there is already a file that contains "0". You can just create this yourself, then upload it to the same directory as this script.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 15, 2006 Hits: 3 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

This simple tutorial will explain how to program a simple text-file counter.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 15, 2006 Hits: 5 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

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:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 15, 2006 Hits: 1 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

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:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 15, 2006 Hits: 4 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

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:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: May 24, 2007 Hits: 9 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

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

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Jun 1, 2007 Hits: 9 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

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:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Jun 15, 2007 Hits: 2 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

A counter is an essential part of a site to know how many people are coming to site. Here is an easy way to make a 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:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Feb 1, 2008 Hits: 6 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

All of 1Scripts's flatfile scripts are completely free to use. You can modify the scripts to match the design of your own website. If you need help, just ask in the forum.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Apr 18, 2008 Hits: 0 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

Pages: [< Previous] 1 2

Category Jump :