Re: Cannot add header information

From: Date: Thu, 20 Feb 2003 01:13:34 +0000
Subject: Re: Cannot add header information
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136201@lists.php.net to get a copy of this message
At 15:33 19/02/03, you wrote:
I have a script which adds header information to a different page, on my server I get a Cannot add header information - headers already sent by. But on other servers it works fine, does any1 know why??
Are you sure you did not edit a file? Take care that there is not __any__ output before the header() command. The error message you got gives you an indication where the output starts. Have a close look at that line. Remove all spaces and enters in the PHP files before <? or after ?>. An error message before this error message is also output, for which PHP creates headers.

« previous php.general (#136201) next »