URL file-access and SimpleXML
Posted: Mon Oct 23, 2006 6:25 am
For a project I am working on I need to get data from freedb2.org. The easiest way will probably be to use the xml feeds they provide.
I have tried to use php's simplexml function but of course I can't use:
because I get this error
The same is also true for:
I have found a horrid way of getting it working use curl.
Is there a better way of doing this?
I have tried to use php's simplexml function but of course I can't use:
Code: Select all
include 'http://www.freedb2.org/xml/whatever';
$xml = new SimpleXMLElement($xmlstr);Code: Select all
URL file-access is disabled in the server configurationCode: Select all
simplexml_load_file('http://www.freedb2.org/xml/whatever');Is there a better way of doing this?