Re: A buglet?

From: Date: Mon, 03 Jul 2000 14:47:30 +0000
Subject: Re: A buglet?
Groups: php.general 
Request: Send a blank email to php-general+get-4496@lists.php.net to get a copy of this message
yes that's a good point. perhaps something above the commented out line is leaving the PHP parser in a funny state, and it's not recognizing your attempt to comment the line. try an echo before and after your commented line, like this: echo("Before commented line."); #echo ... your line echo("After commented line."); if that fails, then maybe PHP is not handling comments correctly. I do think I read about not nesting comments. maybe there are other caveats? also, just for fun, try using /* <your code> */ and //. michael --- Dan Krumlauf <Boz@musheen.com> wrote: > David VanHorn wrote: > > > > At 01:26 PM 6/30/00 -0600, Jason wrote: > > >echo > > >"</form>".include("footer.inc")."</html>"; > > > > Ok, but: > > > > > #echo ("</FORM><? > include(\"footer.inc\")?></HTML>"); > > > > When this is commented out, should PHP not ignore > it? > > What happens is that the last tag (html off) is > sent to the browser, and > > the remainder of the script is dumped to the user > as text. NOT good. > > > I willing to bet you have an unescaped quote earlier > in the text that would > make php read this line as "#echo (" and it never > sees the # as a comment > delimit but as a string # so it doesnt know to > ignore it. Just a guess. > > VYDK > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > For additional commands, e-mail: > php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/

« previous php.general (#4496) next »