Huge error logs with output buffering
| From: | Shane Wegner | Date: | Fri, 01 Dec 2000 20:15:20 +0000 |
| Subject: | Huge error logs with output buffering | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-28274@lists.php.net to get a copy of this message | ||
Hi,
I am having a rather anoying problem which I believe may be
related to PHP. The problem is that every now and then the
entire text of a requested html file after being processed
by PHP appears in my error log. The thing is, there is no
error, no timestamp, it's just there as big as life. The
thing grows by about 30mb daily with this. Why I think it
might be related to PHP is that I didn't get this until I
started using output buffering.
I have the following php code in shared.inc included by all
pages. shared.inc defines all supporting functions besides
function body() which is define in the seperate html files.
<?
function displaypage()
{
global $noob;
if (!$noob) {
ob_start();
$headers = getallheaders();
if ($headers["If-Modified-Since"] &&
strtotime($headers["If-Modified-Since"]) > lastmod()) {
header("HTTP/1.1 304 Not Modified");
exit();
}
}
htmlheader();
body();
htmlfooter();
if (!$noob)
header("Content-Length: ".ob_get_length());
}
?>
This is PHP-Apache 4.0.3pl1 Apache 1.3.9 (Debian).
Any help with this would be greatly appreciated.
Shane
--
Shane Wegner: shane@cm.nu
http://www.cm.nu/~shane/
PGP: 1024D/FFE3035D
A0ED DAC4 77EC D674 5487
5B5C 4F89 9A4E FFE3 035D