PHP Classes

AzDGOnlineUsers: Show online users, hits at this moment at the site

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 3,394 All time: 1,011 This week: 73Up
Version License Categories
azdgonlineusers 1.0.0GNU General Publi...Statistics, User Management
Description 

Author

This class count online users on the all pages where class-code are included. It may count:
- Users on all pages (website) or only this page.
- Hits number from last $sec time in the site or only this page.

Uses MySQL.

Picture of AzDG
Name: AzDG <contact>
Classes: 5 packages by
Country: Azerbaijan Azerbaijan
Age: 47
All time rank: 1941 in Azerbaijan Azerbaijan
Week rank: 216 Down2 in Azerbaijan Azerbaijan Down

Details

################################################################## # \-\-\-\-\-\-\-\-\ AzDG - S C R I P T S /-/-/-/-/-/-/-/-/-/ # ################################################################## # AzDGOnlineUsers(class) Version 1 # # Writed by AzDG (support@azdg.com) # # Created 25/08/02 Last Modified 25/08/02 # # Scripts Home: http://www.azdg.com # ################################################################## 1. About 2. Purposes 3. Requirements 4. Installation 5. How to use? ################################################################## 1. This class writed by AzDG. Its free, but under GPL. 2. This class count online users on the all pages where class-code are included. It may count: - users on all pages (website) or only this page - hits number from last $sec time in the site or only this page 3. Requirements, PHP 4.0.6, MySQL 3.20 or more versions 4. Installation: - unzip archiv to some directory (ex. online) - change configs in install.php, and open it from www //////// Change configs ////////// $host = 'localhost'; $database = 'database'; $user = 'user'; $password = 'password'; $table = 'ou'; s////////////////////////////////// - change configs in AzDGOnlineUsers.class.inc.php // Auth information - Please change ###### Be Carefull - "var" must entered before each $variable var $host = 'localhost'; var $database = 'database'; var $user = 'user'; var $password = 'password'; var $table = 'ou'; ///////////////// var $sec = 180; // how many second set to user for timeout ///////////////// - Thats all (read about insert code in your pages) 5. How to use? Code Example Online code (without statistic see, only code) <?php include('AzDGOnlineUsers.class.inc.php'); $ol = new ou(); ?> Example1.php <?php include('AzDGOnlineUsers.class.inc.php'); $ol = new ou(); $ol->view(1); // 1 - Show online users number on all page with code $ol->view(2); // 2 - Show hits on all pages with code // You may show all 2 statistics line $ol->view(); // Show all 2 statistics line ?> Please send me all questions to support@azdg.com

  Files folder image Files (3)  
File Role Description
Plain text file AzDGOnlineUsers.class.inc.php Class Main class file
Accessible without login Plain text file install.php Conf. Install table script
Accessible without login Plain text file Readme.txt Doc. Help file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,394
This week:0
All time:1,011
This week:73Up
 User Ratings  
 
 All time
Utility:78%StarStarStarStar
Consistency:67%StarStarStarStar
Documentation:71%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2255