Re: COULD NOT RESEND HEADER..

From: Date: Sat, 29 Jul 2006 12:50:02 +0000
Subject: Re: COULD NOT RESEND HEADER..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-239876@lists.php.net to get a copy of this message
On 7/29/06, BBC <bbc_danang@telkom.net> 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

« previous php.general (#239876) next »