> 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... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php