Re: sending headers

From: Date: Mon, 23 Jun 2003 14:44:54 +0000
Subject: Re: sending headers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152503@lists.php.net to get a copy of this message
> I try to include a redirect header in my script, but is fails with the > familiar ( headers already sent) error. > > I KNOW you should put the headers call where it will cause the first > output, and I do that, the only thing happening infront of the headers > call is an include statement to my main db class; this class has > absolutely NO output unless a function is called (which it is not)... > > What am I missing? The error message tells you exactly what you need to know. "Output started at xxx.php:12" or something similar. That gives you the file name and line number where "output" was started. Begin your troubleshooting there. Ensure you don't have any whitespace before or after the opening/closing <? and ?> tags (like an extra newline at the end of the included file). ---John Holmes...

« previous php.general (#152503) next »