clearmedia Posted July 7, 2009 Share Posted July 7, 2009 Hi folks, I am getting this error when running a script to parse an xml file: Warning: DOMDocument::load() [domdocument.load]: URL file-access is disabled in the server configuration Plus futher errors that result after this first one. The script that is producing these errors begins with: $xml=new DOMDocument(); $xml->load("ftp://ftp2.bom.gov.au/anon/gen/fwo/IDV10717.xml"); Can someone give my some advice on how to remedy this. The script was working until yesterday and now is throwing errors. Much appreciated, as usual my client is going off their head and the hosting provider seems to have no idea! Cheers Clearmedia Quote Link to comment Share on other sites More sharing options...
Bendude14 Posted July 7, 2009 Share Posted July 7, 2009 this error <b>URL file-access is disabled in the server configuration</b> is when you do not have acecss to a file through its absolute path... if the file is on the same server specifiy a relative path to it... Quote Link to comment Share on other sites More sharing options...
clearmedia Posted July 7, 2009 Author Share Posted July 7, 2009 Thanks for the quick response. The .xml file is on another server, it is a publically accessible file and gets updated twice a day so its not possible to have a local file. Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted July 7, 2009 Share Posted July 7, 2009 use cURL or file_get_contents to read the remote xml Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.