PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 425 This week: 1All time: 6,354 This week: 560Up
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.

Picture of Brent Rossen
Name: Brent Rossen <contact>
Classes: 4 packages by
Country: United States United States
Age: 42
All time rank: 1109161 in United States United States
Week rank: 416 Up46 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:425
This week:1
All time:6,354
This week:560Up