RE: Headers Already Sent - How To Overcome????

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Is there a command or someway to get around this problem without
> hacking out all of the other header sending code?

Yes there is: check out out: ob_start(), ob_clean and ob_flush().

Put an ob_start() start at the very first line of your code, and just before
you send the header information, do an ob_clean(). This should clean out
anything that so far has been buffered in the out putbuffer.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux