PHP Classes
elePHPant
Icontem

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 (11 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,664 This week: 3All time: 2,279 This week: 377Up
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.

Picture of Vagharshak Tozalakyan
Name: Vagharshak Tozalakyan <contact>
Classes: 23 packages by
Country: Armenia Armenia
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  
 0%
Total:1,664
This week:3
All time:2,279
This week:377Up