PHP Classes

Apache 2 log file parser: Parse common log format files generated by Apache

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,598 All time: 2,460 This week: 79Up
Version License Categories
apache2logparse 1.0.0GNU General Publi...PHP 5, Logging
Description 

Author

This class can be used to parse common log format files generated by Apache 2.

It reads an Apache log file into an array. Each log file line can be parsed to retrieve the request details: IP address, date, HTTP method, URI, response status code and user agent.

Picture of Paul Scott
Name: Paul Scott <contact>
Classes: 14 packages by
Country: South Africa South Africa
Age: 47
All time rank: 471 in South Africa South Africa
Week rank: 48 Down1 in South Africa South Africa Equal
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files (2)  
File Role Description
Plain text file apachelogparser_class_inc.php Class class code
Accessible without login Plain text file example.php Example example script

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,598
This week:0
All time:2,460
This week:79Up