[thelist] php & xhtml, escaping

Mark Howells mark at mountain.ch
Wed Jul 17 15:08:01 CDT 2002


> "The first way, <?php. . .?>, is the preferred method, as it allows
> the use of PHP in XML-conformant code such as XHTML."
>
> Does this mean you must do <?php evertime or it won't validate - the
> manual doesn't seem to go into detail about it.

XHTML validation is related to the output ("result") of the PHP file and not
the PHP file itself. <%%> <??> and <?php ?> all work fine (depending on the
PHP configuration of your server, of course).

Regards
Mark Howells
<http://www.mark.ac/evl/>




More information about the thelist mailing list