...

World Wide Web Server 2012-07-04 16:04:04 -07:00
parent 25f864d5bb
commit 3385e60458

@ -4,20 +4,28 @@
There is a "time_limit" that is used to know if the user is not active anymore. All the users that are not active anymore are deleted from the record file. We know how many users are online counting the records on the file.
<h2>Class basic features<h2>
<ul>
<li>Auto-update hit times</li>
<li>Auto-clean expired hits</li>
<li>Easy-way to display how many users are online</li>
<li>Database server NOT needed (it uses text file instead)</li>
</ul>
<h2>Class basic features</h2>
Auto-update hit times
Auto-clean expired hits
Easy-way to display how many users are online
Database server NOT needed (it uses text file instead)
>
<h2>Class advanced features</h2>
<ul>
<li>You can use custom data for the user; it's useful if you want to show off which members are logged in the system</li>
<li>Last page visited (returned by $_SERVER['REQUEST_URI']) is recorded</li>
<li>Robots are automatically detected using the USER_AGENT library</li>
</ul>
You can use custom data for the user; it's useful if you want to show off which members are logged in the system
Last page visited (returned by $_SERVER['REQUEST_URI']) is recorded
Robots are automatically detected using the USER_AGENT library
<h2>Installation</h2>
Download the class ([[File:OnlineUsers.zip]]) and uncompress it to your APPLICATION/LIBRARIES directory
Change line #16 with your custom database file &#40;requires read/write permissions&#41;
Change line #26 and set the number of seconds for the user not being considered online anymore. (timeout)
<h2>Using the class</h2>
<h3>Loading the class