Re: Adding HTTP Log & HTPasswd classes
| From: | Sagi Bashari | Date: | Fri, 18 Oct 2002 18:43:00 +0000 |
| Subject: | Re: Adding HTTP Log & HTPasswd classes | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10119@lists.php.net to get a copy of this message | ||
On 17/10/2002 17:20, Stig S. Bakken wrote:
Just a naming comment: The log format is Apache-specific (others have copied it, but originally it was Apache-specific, or NCSA httpd-specific for those who've been around for a while). I think Apache_LogParser or something like that would be a proper package name. To me, HTTP_Log sounds like a utility class for logging stuff, not parsing. +1 for Apache_LogParser :)Updated source available at http://beep.boom.org.il/~sagi/pear/Apache_LogParser.phps It is now using the PEAR error handling and is generally compatible with the coding style. I also did my best with documentation. About naming - Currently the class analyzes the log file and generates useragent/referer/url statistics from it. Maybe Apache_LogAnalyzer is a better name. Or maybe we should think a but further and make new package named 'Analyzer', and an HTTP_Statistics class that will extend it or any other analyzer class? Sagi