Re: ob_start changed from php4 to php5?

From: Date: Thu, 18 Aug 2005 07:17:08 +0000
Subject: Re: ob_start changed from php4 to php5?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-220827@lists.php.net to get a copy of this message
Richard Lynch wrote:
Warning: Cannot modify header information - headers already sent in test.php on line 4
I'm guessing that the error message has MORE information than that -- like the line number of the file in which the output occurred. I'm also guessing that it's the LAST line of the file with the "encodeDomain" function in it that you "include" in your test.php I'm also guessing that there's a NEWLINE character after the final ?> in that file on your 5.0.4 box, but that NEWLINE character is *NOT* there on your 4.0 box.
It'd have to be two NEWLINE characters... PHP eats (does not output) any NEWLINE character immediately following a ?> closing PHP tag. Jasper

« previous php.general (#220827) next »