calculate the traffic size with php(like the apache access_log)

From: Date: Thu, 09 Jan 2003 14:17:23 +0000
Subject: calculate the traffic size with php(like the apache access_log)
Groups: php.general 
Request: Send a blank email to php-general+get-130948@lists.php.net to get a copy of this message
Hello Is it possible to get the transfer (traffic) size from a webpage as is stands in the apache access_log file 127.0.0.1 - - [07/Jan/2003:13:01:58 +0100] "GET /~torsten/cups/pdf.php HTTP/1.1" 200 48 (size) When i work with outbut buffer i only get the html source size with ob_get_length.If there are images in the side this method faild ob_get_length ignores the images. I can get the size if i parse the apache log file but there is no way to assign it to a customers homepage because i use a CMS. Maybe there are other ways. BR/Torsten Rosenberger

« previous php.general (#130948) next »