Creating your own logfile - Page 2

The next problem I ran into was that I would get inacurate (or no) filesize specifications in the log
because it's not possible to find out how much content that gets generated from your PHP script. I
ended up recording the original size of the PHP3 file, as this would at least give me a hint about
how much data is actually sent each day/week/month (it's an option - use it or don't).

Well, not much more to say except "Here's the code, use it!" Just include this file the first
thing you do in all your PHP scripts.

/* A note about the lookup_size directive:
* This will make this script lookup the size of the original file on disk,
* which may or may not be the same amount of data sent to the client.
* It does give you a hint though..
* Oh, you have to set $document_root aswell if this should work..
*/