[thelist] php & xhtml, escaping
Pete Freitag
pf at cfdev.com
Wed Jul 17 14:56:01 CDT 2002
Your PHP tags don't necessarily have to be valid XML in order for them to
generate XHTML, unless you plan on running a validation on your php file,
and not the output that it generates.
_____________________________________________
Pete Freitag
CTO, CFDEV.COM
Web Developer Resources
http://www.cfdev.com/
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Tom Dell'Aringa
Sent: Wednesday, July 17, 2002 3:50 PM
To: thelist at lists.evolt.org
Subject: [thelist] php & xhtml, escaping
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
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list