Free PHP Scripts

World's best php script directory
 

Instructions for : Display Users Online Using PHP

Instructions for version 1.0.0

* Download the zip file and extract it.
* Navigate to the following link
http://yourwebsiteurl.com/install.php (i assume that you have uploaded the files in root of your host) * Enter ther database details.
* Delete install.php
* Add the following three php lines in the top of your website.
<?PHP
include_once("user_online_config.php");
$timeoutseconds = 300;
include_once("users_online.php");
?>
* 300 is 300 seconds. It will display users online count based on last five minutes. You can change it.
* Now display the users count in the desired place <?PHP
echo showUsersOnline($timeoutseconds);
?>
* That is it. If you want to change the text or desing open users_online.php and modify the following line
if ($user==1) {return "There is curently 1 Person online.";} else {return "There are currently $user people online.";} * Listen, If you are newbie to scripting, give a mail to agrizlive.com via agrizlive.com/contact.php for coding assitance.

Your account
Advertise Here
Contact to advertise here
Other Resources
* Free Ads
* My Dreams
* Quotes of the day