Counter & visitor statistics ver. 2.06
updated: 2006-07-06
This version is a replacement of the old count_visitor class. There are lot of good systems like this class but most of them are really complex and difficult to modify. You have to use this kind of systems like provided. This class is not an alternative if you look for the same amount functions, but it's a light weight solution to integrate into your website. Inside the latest versions (> 2.02) there is a new top list with the number of visits grouped by the domain name from the HTTP referer information and a monthly detail page for visitors grouped by country and/or referer.
PHP Script Download
You need to login or register to download this class script.
Downloaded 16308 times
Last changes and updates:
Version 2.06
To create statistics for several host on one web server all statistic methods are modified to query the database for the current host if the variable $report_by_host is set to true. If you use this version in an existing application you need to alter the visits table for an extra column "hostname" (check the visits.sql file). I added some style to the reporting page.
Version 2.05
There is some new function to display detailed data for month. It's possible to show the number of visitors by single countries and by the referer information. Inside the new file "monthly_details.php" is a small extenstion with custom methods and also an example table for the data presentation.
Version 2.04
In this version it's possible to show the daily average number visits inside the monthly visitors table. There also some modifications inside these methods: month_last_year() and build_rows_totals(). These methods are new: average_visits_day() and show_max_visited_day. The table names for the ip2nation table data has to be configured now inside the config.php file (constant variables). In the same time I fixed the "mini" bug about the different spelling of the tablename "ip2nationCountries".