PHP Classes
elePHPant
Icontem

Simple Hit Counter: Count the number user accesses using files

Recommend this page to a friend!
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2010-04-05 (6 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 422 All time: 6,064 This week: 901Up
Version License PHP version Categories
simple-counter 1.0.0Freeware3.0PHP 5, Files and Folders
Description Author

This class can be used to count the number user accesses using files.

It stores in one text file the list of the IP addresses of all users that access the site, in another file the number of unique visitors and the total number of accesses in another file.

The class can also retrieve each of the counts from the files.

Name: Brent Rossen <contact>
Classes: 4 packages by
Country: United States United States
Age: 35
All time rank: 1084144 in United States United States
Week rank: 325 Up30 in United States United States Up

  Files folder image Files  
File Role Description
Files folder imageincludes (3 files, 1 directory)
Accessible without login Plain text file example_output.html Output Example output

  Files folder image Files  /  includes  
File Role Description
Files folder imagecounterfiles (3 files)
  Plain text file counter.php Class Class file which handles the counting of hits/ips and can be queried for results
  Accessible without login Plain text file include_counter.php Example File to include on your page to count the hits
  Accessible without login Plain text file viewcounter.php Example Example page to view the hit results

  Files folder image Files  /  includes  /  counterfiles  
File Role Description
  Accessible without login Plain text file count.txt Data File that stores the count of unique ips on the page
  Accessible without login Plain text file hits.txt Data The file to store the total number of hits
  Accessible without login Plain text file ips.txt Data The file to store the ip addresses

 Version Control Unique User Downloads Download Rankings  
 0%
Total:422
This week:0
All time:6,064
This week:901Up