PHP Classes

Time Online: Keep track of the time users spend in a 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
StarStarStarStar 68%Total: 3,141 All time: 1,148 This week: 63Up
Version License Categories
time_online 1.0.0GNU Lesser Genera...HTML, Time and Date, Statistics, User...
Description 

Author

This class is meant to keep track of the time the users spend visiting the pages of a site.

It can keep track of the time spent in a single page, on the entire site using the same session or the total time since the first access.

It can display in the site HTML pages the time spent and keep displaying the time in real time so the user can see the time spent as it passes.

Picture of Protung Dragos
Name: Protung Dragos is available for providing paid consulting. Contact Protung Dragos .
Classes: 10 packages by
Country: Romania Romania
Age: 41
All time rank: 271 in Romania Romania
Week rank: 44 Down1 in Romania Romania Equal
Innovation award
Innovation award
Nominee: 3x

Details

___________________________________________________________ Time Online - Version 0.9 README June 2004 ___________________________________________________________ Copyright (C) 2004 Dragos Protung _______________________ CONTENTS _______________________ 1. Description 2. System Requirements 3. How to use 4. Contact _______________________ 1. Product Description _______________________ A PHP class to help get info how much time users spend on a page or on the entire site in a session or the total time. It can display the time and count it in real time so you can see the seconds, minutes, etc. changeing This is not a finished script. I only tested it on IE 6 Mozilla 1.4 and Opera 7.1 For other Browsers use: $test = new time_online; $test -> userTO; // array with the time for te current session $test -> userTT; // array with the entyre time (from every visit) and display the times yourself _______________________ 2. System Requirements _______________________ - for running the script: PHP - User must have : - cookies enabled - IE 6 Mozilla 1.4 and Opera 7.1 (on this browsers was tested) * Please test the script on diferent browsers and diferent versions and send feedback to improve the script * More support will be added soon ______________ 3. How to use ______________ First include the class: include ("time_online.class.php"); REMEMBER THAT THE CLASS MUST BE LOADED BEFORE ANY OTHER HEADERS ARE SENT !!!! If you want to have access to the array with the times use: $test = new time_online; $test -> userTO; // array with the time for te current session $test -> userTT; // array with the entyre time (from every visit) If you want to display the time that the user was on the site or page call display_time() with these parameters: - display_time("current_page") -- will display and continues to count the time for the current page (IE 6 Mozilla 1.4 and Opera 7.1 (on this browsers was tested)) - display_time("current_session") -- will display and continues to count the time for the current session (IE 6 Mozilla 1.4 and Opera 7.1 (on this browsers was tested)) - display_time("total_time") -- will display and continues to count the time for all the visits (IE 6 Mozilla 1.4 and Opera 7.1 (on this browsers was tested)) ______________ 3. Contact ______________ Please send your suggestions, bug reports and general feedback to dragos@protung.ro Also visit http://www.protung.ro Out for now ;)

  Files folder image Files (3)  
File Role Description
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file readme.txt Doc. Documentation
Accessible without login Plain text file time_online.class.php Class Class 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,141
This week:0
All time:1,148
This week:63Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:87%StarStarStarStarStar
Examples:87%StarStarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:406