Re: <?xml version="1.0" encoding="UTF-8>
| From: | CPT John W. Holmes | Date: | Mon, 23 Jun 2003 17:22:15 +0000 |
| Subject: | Re: <?xml version="1.0" encoding="UTF-8> | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152522@lists.php.net to get a copy of this message | ||
> When I include <?xml version="1.0" encoding="UTF-8"?> in my html
> code, I get a parse error. The version is 4.1.2; phpinfo() reports
> that XML support is turned on. Can anyone help with this?
The first two characters are opening up a PHP block of code, so you get a
parse error. Either disable short open tags in php.ini, or use
<?
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
?>
---John Holmes...