PHP MYSQL Visitor Counter
Description
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.
* Current functions Unique visitor counter (time operated)
* Registration of information about the visitor (referer, ip address, date/time etc.)
* Saving the visitors country code (ip address based)
* (graphical) Visitor statistics (periods, top 10, country based...)
* HTML code generation (statistics)
Requirements
This class requires a PHP enabled Apache (virtual) host. I tested this class with PHP 4.3 and MySQL 3.23 on Windows and Linux.
You can use this class with the php setting register_globals = off.
Installation
* Use both sql files to create the MySQL tables.
* Now change the config-file "db_config.php" to fit your environment.
* To fit the path structure check the include paths in the example / application files. I used the server variable "DOCUMENT_ROOT" as the root level.
Above the root the is a folder named "classes". Inside this folder I used the folder named "count_visitor_statistics" (the standard location for all files).
* Now you can include the counter method in the required files. Tip! use one included file for several scripts!
Download the Attached File below
[Note: If u can't see any file attached, Please Register and Login with your id.]