Hi, I am trying to show
xml version 1.0 encoding utf-8 in php, I have tried :
echo '<?xml version="1.0" encoding="utf-8"?>';
but this doesnt validate on w3c, when using it in xhtml, the php shows an error.
Whats the easiest way to fix this? With it validating
Thanks
error on w3c:
Line 5, Column 46: character "'" not allowed in prolog
echo '<?xml version="1.0" encoding="utf-8"?>';
Line 5, Column 45: XML Parsing Error: Start tag expected, '<' not found
echo '<?xml version="1.0" encoding="utf-8"?>';
php error:
Parse error: syntax error, unexpected T_STRING in /home/public_html//request.php on line 7
<?php
session_start();
include ('../connection.php');
include ('../functions.php');
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
?>