Re: A buglet?

From: Date: Fri, 30 Jun 2000 19:19:49 +0000
Subject: Re: A buglet?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4113@lists.php.net to get a copy of this message
I'm not sure what you're trying to do here, is this all code within php? If so, then there shouldn't be a reason for you to start the <? tag for PHP. It should be, as someone already said: echo ("</FORM>" . include(\"footer.inc\") . "</HTML>"); I just learned something new, I didn't know you could comment with the # character. :-) I found it interesting that on 6/30/00 2:48 PM David VanHorn said: > This little bit of PHP seems to interpret wrongly. > (Or I made a mistake) > > #echo ("</FORM><? include(\"footer.inc\")?></HTML>"); > > What this is, is the bottom of an error exit. > It is commented out at the moment (important!) > When not commented, it should send end of form, the footer html, and the > end of html tag. But, <EVEN WHEN COMMENTED OUT> the "?>" is being > interpreted by PHP as "end of php" and it then spews 20k of the following > php code directly to the user! > > I may not have escaped everything properly, but when I comment something > out, I damn well expect the interpreter to ignore it! -- Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/

« previous php.general (#4113) next »