zaro Posted December 6, 2007 Share Posted December 6, 2007 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 Quote Link to comment Share on other sites More sharing options...
tbare Posted December 6, 2007 Share Posted December 6, 2007 not sure... but it looks like there's too many \'s there: Y:\\blah\\blah\\etc.. i'm probably wrong, but it's a possibility? Quote Link to comment Share on other sites More sharing options...
zaro Posted December 6, 2007 Author Share Posted December 6, 2007 The extra slashes are to just escape the slash. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.