Re: COULD NOT RESEND HEADER..

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

 



On 7/29/06, BBC <bbc_danang@xxxxxxxxxx> wrote:
The error message: "could not resend header, header already sent in line.."

It isn't a bug.  What it's saying is completely accurate.  You can
only send header information to the browser once.  As soon as you
output *anything* (via echo/print), headers are sent.  So if you
output something, and then try the header() functions, you'll get your
error.

Make sure that your header() calls occur before any output.  Or you
can buffer and catch your output if you can't keep it from being spit
out before your header() calls.

HTH,
John W

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux