RE: [PHP] A buglet?
| From: | Peter Benoit | Date: | Fri, 30 Jun 2000 18:47:16 +0000 |
| Subject: | RE: [PHP] A buglet? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-4101@lists.php.net to get a copy of this message | ||
echo ("</FORM>".include("footer.inc")."</HTML");
How about something like that? Sorta new at this, so I may be way off base.
-----Original Message-----
From: David VanHorn [mailto:dvanhorn@cedar.net]
Sent: Friday, June 30, 2000 2:48 PM
To: php-general@lists.php.net
Subject: [PHP] A buglet?
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!
--
www.SpamWhack.com A pre-emptive strike against spam
A tornado is a lady whose skirts you do NOT want to look up!
Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
--
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