PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,597 All time: 2,461 This week: 455Up
Version License Categories
apache2logparse 1.0.0GNU General Publi...PHP 5, Logging


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: 249 Down1 in South Africa South Africa Equal
Innovation award
Innovation award
Nominee: 4x

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

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,461
This week:455Up