michaelsanford
Translator, Web Developer
I presume /private/var/log/httpd/access_log and error_log are rolled over at some point?
When and how does this happen? Is the log file truncated, or is the whole thing just erased, or what?
What I'm interested in doing is adding support for dating my PHP counter (aCounter).
aCounter looks through access_log for instances of filenames, and if I can use some PHP function to date when the log file was rolled over, I can accurately say "xx visits since (logfile modification)".
But so far, no luck...
(FYI there's no PHP function to determine when a file was created...)
When and how does this happen? Is the log file truncated, or is the whole thing just erased, or what?
What I'm interested in doing is adding support for dating my PHP counter (aCounter).
aCounter looks through access_log for instances of filenames, and if I can use some PHP function to date when the log file was rolled over, I can accurately say "xx visits since (logfile modification)".
But so far, no luck...
(FYI there's no PHP function to determine when a file was created...)