Re: Outputting HTML with PHP - Buffer Problem?
| From: | Nick Wilson | Date: | Sun, 12 Sep 2004 17:11:19 +0000 |
| Subject: | Re: Outputting HTML with PHP - Buffer Problem? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196450@lists.php.net to get a copy of this message | ||
* and then John Holmes declared....
> >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?
>
> Could be your web server buffering the output until the script finishes
> or something else on your connection doing the same. Some web browsers
> will not show content until everything is received. You could try using
> flush() to see if that helps.
Ok, that makes sense, i was fairly certain that i wasnt mistaken in
thinking it should woek the way i expected...
Cheers John,..
--
Nick W