Version 20
 

Welcome to PHP Web Stat!

Thank you for choosing our stat script.

This quick manual will show you how to install and run the stat properly and you will get inside the technical aspect of the script.

The whole script is realized in PHP and the tech behind it you can read in the following:

Every site that should be tracked, gets the same double lined Javascript/NoScriptTag. By visiting such a site, the javascript will be interpreted and will call by itself the tracking php script which will then execute a few lines of javascript within the browser to get all information about the visiting user. The so called lines of javascript send all these information back to the tracking php script. The tracking php script will then analyze all these information and save it in the logfile(*).

To reduce the size of the logfile(*), the tracking php script uses a few pattern files(*) to check if the desired information about the visitor was logged before. If so, the tracking script just takes the key of this read entry and saves this key to the logfile(*). So we can reduce the size of the whole logfile(*). You can look into the pattern files(*) if you open the folder "log".

Logging into Textfiles

If you setup the stat to log into textfiles, the main file is called logdb_backup.dta in the folder LOG. All pattern files start with the word pattern_.

Logging into Database

If you setup the stat to log into a database, the main database table is called PREFIX_main, all other tables used are the desired pattern tables.

Another aspect of performance is the saving function of all visitors of the logfile to a cached version. So if you call the stat in your browser, only the last entries will be parsed.

*  The logfile can be a textfile or a database table, depending on how you setup the stat.