PHP Classes

giCounter: Keep track of page visitors using text files

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 279 All time: 7,622 This week: 660Up
Version License PHP version Categories
gicounter 1.0GNU General Publi...3User Management


This class can be used to keep track of the number of page visitors using text files.

It uses text files to store page visit counts.

Each time a user visits a page the class adds or updates an array entry that counts the number of visits to that page. The array is serialized and store in a text file.

The class reads the text file and unserializes the array to get the count of visited site pages.

Picture of Giulio Bai
Name: Giulio Bai <contact>
Classes: 8 packages by
Country: Italy Italy
Age: 33
All time rank: 31911 in Italy Italy
Week rank: 298 Up14 in Italy Italy Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file giCounter.php Class The main class file
Accessible without login Plain text file example1.php Example Example #1

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,622
This week:660Up