Re: Escaping from HTML / incompatibilities
| From: | Stanislav Malyshev | Date: | Thu, 08 Jun 2000 08:02:19 +0000 |
| Subject: | Re: Escaping from HTML / incompatibilities | ||
| References: | 1 | Groups: | php.migration |
| Request: | Send a blank email to php-migration+get-10@lists.php.net to get a copy of this message | ||
BP>> Does PHP4 no longer allow to escape from HTML within an HTML tag? This
Why not? It does.
BP>> obviously would be stricter where SGML/XML is concerned, but should be
BP>> listed under 'incompatibilities' on php.net/version4/ as it is a widely
BP>> used, if undocumented, feature of php3.
BP>>
BP>> Example:
BP>>
BP>> Code line and results
BP>>
BP>> <A HREF="<? echo $SCRIPT_NAME ?>">go</A>
BP>>
BP>> PHP3: <A HREF="/mypage.php">go</A>
BP>> PHP4: <A HREF="">go</A>
Maybe you just don't have this variable set for some reason?
This should work in PHP 4 as well.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665