PHP Classes

Online Visitors Count: Keep track of the current site number of visitors

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,444 This week: 1All time: 2,711 This week: 74Up
Version License PHP version Categories
visitors 1.0GNU General Publi...4Statistics, User Management


This class can be used to keeep track of the current site number of current visitors.

It uses the IP address of the visitor accessing the site to keep track of the visit in a MySQL database.

The class can return the number of visitors still active by default for the last 5 minutes.

Picture of Alfredo Sanchez
Name: Alfredo Sanchez <contact>
Classes: 2 packages by
Country: Philippines Philippines
Age: ???
All time rank: 145317 in Philippines Philippines
Week rank: 91 Up1 in Philippines Philippines Up

  Files folder image Files  
File Role Description
Plain text file class.visitors.php Class Online Visitors Class
Plain text file class.database.php Class database wrapper from POG
Accessible without login Plain text file sample.php Example Sample Code
Plain text file configuration.php Conf. Configuration file used to connect to the database

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:2,711
This week:74Up