Jump to content

Copying files to a Network Drive - Win XP to Win 2k3 server


zaro

Recommended Posts

I'm having problems copying to any network drive on our system, I can do it manually, or with an Xcopy bat file but I cannot use php's copy function to do it.

I'm able to copy files locally using copy script I have, I tried to have php exec the bat file but that also didn't work.  Don't know if it matters or not but I'm trying to copy over 13 dbfs that are created by the script earlier, everything works using local drives but when I set the destination to be a mapped network drive it doesn't work.  I have given everyone full access to folder and have pretty much gone through everything on permissions.

 

Error - I get the same response for all 13 files, which all do exist and I've tried copying them to the destination manually and i get the same errors when I attempt to run the script.

PHP Warning:  copy(Y:\\Status_Tables\\Tract_2L_ST.dbf) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\dircopy.php on line 20

 

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.