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

 

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.