Jump to content

DOMDocument::load(); using an absolute path to mapped drive failing


tbare

Recommended Posts

PHP 5.3 on Windows 7 running IIS 7

 

Hey... when using:

$dom = DOMDocument::load( 'p:\\WebTest\\test1.xml' );

where P:\ is a mapped drive, I'm getting:

Warning: DOMDocument::load(): I/O warning : failed to load external entity "file:///p:/WebTest/test1.xml" in ...

 

I've also tried using / instead of \\. If it's on c:\, it works fine, but I can't get the absolute path to work to a mapped drive.

 

If I use \\\ip\\folder\\file (or //ip/folder/file) the page never loads.

 

Any thoughts on getting DOMDocument to look at a shared network location on Windows?

 

Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.