Login   Register  
PHP Classes
elePHPant
Icontem

Little Counter: Keep track of user accesses to site pages in MySQL

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-12-24 (9 years ago) RSS 2.0 feedStarStarStar 49%Total: 1,028 This week: 1All time: 3,333 This week: 1,398Up
Version License Categories  
littlecounter 1.0.0FreewareDatabases, User Management
Description Author  

This is a simple class that keeps track of the accesses of users to the pages of a site using a MySQL table to record the user access hits.

The class connects to the MySQL database and records in the counter table the IP address of the user accessing the site and the current time. The class assumes that each IP address corresponds to one user.

The class is also able to query the counter table and retrieve:

1) The total number hits
2) The total number of visits
3) The number of users, which are online. A user is considered to be online if he has accessed to the site within a period of time defined by the class variable online time.
4) The number of hits of one user during the last 24 hours

Picture of Markus Fensterer
Name: Markus Fensterer <contact>
Classes: 1 package by
Country: Germany Germany
Age: 25
All time rank: 2115138 in Germany Germany
Week rank: 1077 Up52 in Germany Germany Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file database.inc.php Conf. database configuration file
Accessible without login Plain text file example.php Example example script
Plain text file littleCounter.php Class littleCounter class

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,028All time:3,333
 This week:1This week:1,398Up
User Ratings User Comments (1)  
 All time
Utility:66%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:1702
 
Excellent
5 years ago (kishore kumar)
70%StarStarStarStar