Outputting HTML with PHP - Buffer Problem?
| From: | Nick Wilson | Date: | Sun, 12 Sep 2004 16:36:05 +0000 |
| Subject: | Outputting HTML with PHP - Buffer Problem? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-196442@lists.php.net to get a copy of this message | ||
Hi all,
Say i have a php script like this:
<?php
print(html_head());
// do loads of time taking stuff
print(html_footer());
?>
How come I dont see the html header (it's just a function that returns a
string with the html up till <body>) before the entire script has run?
This goes against my understanding, why might this be and what might i
use to get some output before the script has finished executing?
Much thanks...
--
Nick W