PHP Classes

Simple Hit Counter: Count the number user accesses using files

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 425 All time: 6,359 This week: 488Up
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: 43
All time rank: 1110161 in United States United States
Week rank: 288 Up36 in United States United States Up

  Files folder image Files (7)  
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 (7)  /  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 (7)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:425
This week:0
All time:6,359
This week:488Up