Who’s Online PHP Script 2.0 for your template site
This advanced PHP script is designed to be a webmaster tool for your PHP template web site.
Includes a carterlake php template page and includes instructions for other template sites.
It uses a MySQL database to track web site visitors online from the last 15 minutes.
You can see what pages they click on.
Visitors are considered inactive after 5 minutes. Removed after 15 minutes.
Nothing is permanently logged except for a few records.
It has a readme.txt file with step by step instructions, but if you are a beginner at PHP it might not be easy.
Download:
http://www.642weather.com/weather/scripts/whos-online.zip
Live Example:
My page is password protected, but there is a screenshot.jpg included in the download.
Script page:
Features
Shows Search bots, Visitors, and You
Time online
Entry Time
Last Click Time
IP Addresses
IP Lookups
Last URL Visited
Referrer URL
Visitor count
Max visitors today, month, year, all time
Language variables, easy to translate
Supports tracking of php pages and non-php pages like .htm, .html, etc
Options:
- password protect for admin only usage (protects your visitor’s privacy)
- Show or hide Bots, Refresh rate, Profile display
- timezone configurable
- hide ip addresses if you want
- “location plugin” included: adds country, city, state, latitude & longitude, and a worldmap image of online visitors.
- many of the features can be turned on or off in include-whos-online-settings.php
If upgrading from 1.xx, read the included file “upgrading to 2.0 or higher.txt”
This is not a page full featured hit counter or web site logger, you can use google analytics or webalizer for that.
If you have any ideas for more features, let me know
If you try it please let me know, thanks
Version: 2.25 - 02-Sep-2009 - fixed blank map in PHP5.3
to upgrade from 2.24, replace wo-worldmap.php, include-whos-online-header.php and include-whos-online-page.php
Version: 2.24 - 26-Aug-2009 - fixed a deprecated ereg_replace function for PHP 5.3+ compatibility when error warnings are on
to upgrade from 2.23, replace include-whos-online-header.php and include-whos-online-page.php
Version: 2.23 - 02-Aug-2009 - added table definition for table geo_update
to upgrade from 2.22, replace include-whos-online-header.php, include-whos-online-page.php, and add the following settings to your include-whos-online-settings.php
define(‘TABLE_GEO_UPDATE’, ‘geo_update’);
Version: 2.22 - 06-Jul-2009 - another bug fix for maxmind update code related to changes I made in version 2.21
to upgrade from 2.21, replace wo-update.php, include-whos-online-header.php and include-whos-online-page.php
Version: 2.21 - 05-Jul-2009 - There is part of the PHP code where I use CURL to check the last modified date of the maxmind database. Sometimes CURL returns -1 instead of the timestamp on some peoples servers.
I made a modification to use http to check the date when this error is detected.
to upgrade from 2.20, replace include-whos-online-header.php and include-whos-online-page.ph
for more history see changelog.txt in the zip file