PHP Classes

ML Log: Log Web site visitors and compute statistics

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 1,257 All time: 3,051 This week: 488Up
Version License Categories
ml_log 1.0GNU General Publi...Databases, User Management, Logging
Description 

Author

This class can be used to log Web site visitors in a MySQL database and compute statistics from the logged information.

It uses sessions to destinguish each visitor. It can determine the visitors county by looking up a database table with information of the countries associated to each IP address range.

It provides functions for display the visitor log entries or a log summary of the current month, consolidating the computed information by stored in a separate table so it is faster to lookup next time the consolidated information is presented.

The log summary includes visitor count, domain count, country count, most popular country, most popular domain and most popular day of the week.

The class supports recording information of multiple sites in the same database tables.

Picture of scott barrow
Name: scott barrow <contact>
Classes: 2 packages by
Country: United States United States
Age: 54
All time rank: 1583237 in United States United States
Week rank: 206 Up24 in United States United States Up

Screenshots (1)  
  • ml_log_screen.jpg
  Files folder image Files (25)  
File Role Description
Files folder imagedocs (1 file)
Files folder imageinstall (20 files)
Plain text file consolidate.php Example Example file to consolidate table records
Plain text file ml_log_example.php Example Example of Log and Display functions
Plain text file ml_log.class Class Main class file

  Files folder image Files (25)  /  docs  
File Role Description
  Plain text file readme.txt Doc. General Notes

  Files folder image Files (25)  /  install  
File Role Description
  Plain text file install.html Appl. Intro installation page
  Plain text file install.php Appl. Installation script for database tables
  Plain text file ml_insert-0.sql Appl. sql 0 for IP to Country mapping
  Plain text file ml_insert-1.sql Appl. sql 1 for IP to Country mapping
  Plain text file ml_insert-10.sql Appl. sql 10 for IP to Country mapping
  Plain text file ml_insert-11.sql Appl. sql 11 for IP to Country mapping
  Plain text file ml_insert-12.sql Appl. sql 12 for IP to Country mapping
  Plain text file ml_insert-13.sql Appl. sql 13 for IP to Country mapping
  Plain text file ml_insert-14.sql Appl. sql 14 for IP to Country mapping
  Plain text file ml_insert-15.sql Appl. sql 15 for IP to Country mapping
  Plain text file ml_insert-2.sql Appl. sql 2 for IP to Country mapping
  Plain text file ml_insert-3.sql Appl. sql 3 for IP to Country mapping
  Plain text file ml_insert-4.sql Appl. sql 4 for IP to Country mapping
  Plain text file ml_insert-5.sql Appl. sql 5 for IP to Country mapping
  Plain text file ml_insert-6.sql Appl. sql 6 for IP to Country mapping
  Plain text file ml_insert-7.sql Appl. sql 7 for IP to Country mapping
  Plain text file ml_insert-8.sql Appl. sql 8 for IP to Country mapping
  Plain text file ml_insert-9.sql Appl. sql 9 for IP to Country mapping
  Plain text file ml_install.class Class class file for installation
  Plain text file ml_log_mysql_create_tables.sql Appl. SQL to create database table, used by install.php

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,257
This week:0
All time:3,051
This week:488Up
User Ratings User Comments (2)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:58%StarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1433
 
Excellent
15 years ago (kishore kumar)
80%StarStarStarStarStar
in several sql 'insert' scripts the startIP and end IP are ex...
15 years ago (Paul)
40%StarStarStar