Forum Moderators: open

Message Too Old, No Replies

XHTML and PHP

         

djd4n

4:11 pm on May 4, 2005 (gmt 0)

10+ Year Member



PHP does not seem to like:

<?xml version="1.0" encoding="iso-8859-1"?>

I assume this is because it is expecting PHP scripting after the "<?"

Would you use XHTML with PHP?

jatar_k

4:23 pm on May 4, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



try this

[webmasterworld.com...]

Robin_reala

4:23 pm on May 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you serving your XHTML as application/xhtml+xml? If not you don't need the xml declaration. In fact, I'm pretty sure you don't need it unless you're using XML1.1, which I don't think XHTML implements.