...

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. 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> <h2>Class basic features</h2>
<ul>
<li>Auto-update hit times</li> Auto-update hit times
<li>Auto-clean expired hits</li> Auto-clean expired hits
<li>Easy-way to display how many users are online</li> Easy-way to display how many users are online
<li>Database server NOT needed (it uses text file instead)</li> Database server NOT needed (it uses text file instead)
</ul> >
<h2>Class advanced features</h2> <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> 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>Last page visited (returned by $_SERVER['REQUEST_URI']) is recorded</li> Last page visited (returned by $_SERVER['REQUEST_URI']) is recorded
<li>Robots are automatically detected using the USER_AGENT library</li> Robots are automatically detected using the USER_AGENT library
</ul>
<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> <h2>Using the class</h2>
<h3>Loading the class <h3>Loading the class