Jump to content

DOMdocument error


clearmedia

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.