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 Link to comment https://forums.phpfreaks.com/topic/165013-domdocument-error/ 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... Link to comment https://forums.phpfreaks.com/topic/165013-domdocument-error/#findComment-870127 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. Link to comment https://forums.phpfreaks.com/topic/165013-domdocument-error/#findComment-870133 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 Link to comment https://forums.phpfreaks.com/topic/165013-domdocument-error/#findComment-870274 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.