[thelist] php & xhtml, escaping

Tom Dell'Aringa pixelmech at yahoo.com
Wed Jul 17 14:51:00 CDT 2002


Hi all,

I'm just getting better acquainted with PHP and running through the
docs. I first noted that the manual says you can use ASP style tags
"<% %>" which I liked since my editor is set up for them
automatically (no big deal to change it though.) Then I read:

"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.

Tom

=====
var me = tom.pixelmech.webDeveloper();
http://www.pixelmech.com/

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com



More information about the thelist mailing list