|
Posted by Tom on 06/14/06 16:37
I use the following code to flush the buffer as suggested at
http://www.php.net/manual/en/function.ob-end-flush.php:
while (ob_get_level() > 0)
{
ob_end_flush();
}
However, I just noticed a comment:
"Apart from being mostly redundant, ob_end_flush() can be downright
damaging in some weird cases..."
So maybe it has something to do with that.
What I find odd is: if I comment out the echo statement (thus removing
the document statement and head section), the script loads normally. I
thought maybe it was a syntax error, but I've run the XHTML output
through the w3C validator and it validates.
I've also tried removing the buffer flush all together and just letting
the end of the script flush it, but that doesn't seem to solve the
reloading problem.
I'll tinker and tweak further. Anyone else have this problem with
outputing a web page's head section?
Tom
Rik wrote:
> Incorrectly flushing the buffer?
> What functions do you use to send the buffer?
>
> Grtz,
> --
> Rik Wasmus
[Back to original message]
|