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 Link to comment https://forums.phpfreaks.com/topic/80511-copying-files-to-a-network-drive-win-xp-to-win-2k3-server/ 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? Link to comment https://forums.phpfreaks.com/topic/80511-copying-files-to-a-network-drive-win-xp-to-win-2k3-server/#findComment-408178 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. Link to comment https://forums.phpfreaks.com/topic/80511-copying-files-to-a-network-drive-win-xp-to-win-2k3-server/#findComment-408307 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.