Re: cvs: phpweb / docs.php /include languages.inc

From: Date: Mon, 02 Jun 2003 17:20:33 +0000
Subject: Re: cvs: phpweb / docs.php /include languages.inc
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-18401@lists.php.net to get a copy of this message
On Mon, 2 Jun 2003, Gabor Hojtsy wrote: > > There is no problem at all with having: > > > > ?>\n > > > > as the tag *includes* the newline. It's actually just wrong to leave it > > off. > > I learned that trick from code added to php-master-web by other dev > guys. :) Why this is just wrong? I thought this feature exists to > prevent header() problems. I also asked Jim[?] about this, and he > explained it to me, as I was curious why was that used on > master.php.net.... The explanation and reasoning is probably available > on the news server in some letter... So I was taught that this is good > behaviour. Why it is bad??? It isn't. It is perfectly fine to leave off the trailing ?> on include files and you are right, it does make it more robust and less prone to the newline problem for include files that are not supposed to output anything. Derick is just back on the crack pipe again. ;) -Rasmus

« previous php.mirrors (#18401) next »