My shared web server is using "short_open_tag = On". This tag REALLY interferes with XHTML documents. PHP wants to process the xml declaration. Is there a server workaround or website directive that will turn this option off just for my website?
I know, I know I could echo the XML declaration from PHP, but I am lazy 😃 and would rather not have to remember to do that on all PHP-XHTML pages.
Example Document:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<?php echo phpinfo(); ?>
</body>
</html>
Thanks,
D.H.