Instructions for : Display Users Online Using PHP
Free PHP Scripts
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 * 300 is 300 seconds. It will display users online count based on last five minutes. You can change it.
include_once("user_online_config.php");
$timeoutseconds = 300;
include_once("users_online.php");
?>
* Now display the users count in the desired place <?PHP * That is it. If you want to change the text or desing open users_online.php and modify the following line
echo showUsersOnline($timeoutseconds);
?>
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.