RE: [PHP] Re: Cannot add header information
| From: | John W. Holmes | Date: | Fri, 21 Feb 2003 00:51:11 +0000 |
| Subject: | RE: [PHP] Re: Cannot add header information | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136436@lists.php.net to get a copy of this message | ||
> Guys, Guys, why are you harrasing this poor chap?
>
> one sure simple way is..
> at the begining
> <?
> ob_start();
> ....
>
> Starts output beffering.. and at the end,
> ....
> ob_end_flush();
> ?>
> Throws out all the buffered output to the browser at the other end.
>
> now add header info any place before ob_end_flush(); and get no errors
!!!
Indeed... work around the problem instead of solving it... no need for
fundamentals...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/