Jump to content

<?xml version="1.0" encoding="utf-8"?> in a php doc?


Guardian-Mage

Recommended Posts

I parse all of my xhtml pages as php, because I have a lot of php in them. The problem is, to have a perfectly valid xhtml document, I need this line:<?xml version="1.0" encoding="utf-8"?>

My webhosting provider has set php to accept a <? tag as php, so now my pages just come up with an error. How can I include the above line in php, can I add a line to my htaccess file or what?

 

Link to comment
https://forums.phpfreaks.com/topic/91558-in-a-php-doc/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.