Dirty hack to parse apache logs with PHP. Its not really appropriate by its self to parse large logs but could be easily modified. I am just putting it out because I didn't see any script snippets for it already in php.
phpManta is a suite of PHP classes, scripts and examples intended to help PHP programmers writing stable PHP websites and applications. Coding is faster using auto-documentation, templates and web widgets from the phpManta suite.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.