I have PHP 4.0.4 on Solaris 7. When I run a XML page in my browser, I get an error that says : System does not support the specified encoding, Line 1, position 42. <xml version 1.0>.
I thought PHP had built in XML support. Any ideas please?
Thanks.
This isn't a PHP problem. Your XML first line is wrong.
<?xml version="1.0" ?>
That is a correct XML line.
What are you trying to do with PHP and XML. While PHP has the ability to support XML you have to compile it in from external modules. If it's not compiled in then all PHP can do is read the file as if it were text.