Login   Register  
PHP Classes
elePHPant
Icontem

Simple Hit Counter: Count the number user accesses using files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 399 All time: 5,850 This week: 1,469Up
Version License PHP version Categories  
simple-counter 1.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.
Picture of Brent Rossen
Name: Brent Rossen <contact>
Classes: 4 packages by
Country: United States United States
Age: 33
All time rank: 1078142 in United States United States
Week rank: 1114 Down114 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:399All time:5,850
 This week:0This week:1,469Up