PHP Classes

Smart Counter: Count site visitors using a MySQL database

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2005-08-24 (14 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,674 All time: 2,327 This week: 421Up
Version License PHP version Categories
smart_counter 1.0.0GNU General Publi...4Databases, User Management
Description Author

This class can be used to count the number of visitor of a site using a MySQL database table.

It can keep track of the total visitors of a site, visitors of a given page, visitors in the current day and the active visitors (access in the last 5 minutes).

The visits of users of the same IP address are only counted after ending a given period of time (20 minutes by default).

The visitis statistics are stored in two MySQL database tables with configurable names. The class can also create these tables if they do not exist already.

Name: Vagharshak Tozalakyan <contact>
Classes: 22 packages by
Country: Armenia Armenia
Age: 40
All time rank: 61 in Armenia Armenia
Week rank: 90 Down1 in Armenia Armenia Equal
Innovation award
Innovation award
Nominee: 7x


  Files folder image Files  
File Role Description
Plain text file smart_counter.class.php Class Class Source
Accessible without login Plain text file test.php Example Sample

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,327
This week:421Up