|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-14 03:48 UTC] Leblanc at phpzipscript dot org
[2003-11-14 06:46 UTC] edink@php.net
[2004-08-16 02:37 UTC] subsolanus at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 20:00:01 2025 UTC |
Description: ------------ copy()Seem to fail only when the destination directory is a mapped drive with... also tried this... //WORKS FINE $cmd = "copy D:\\temp\\test.csv D:\\temp\\temp_2\\test2.csv"; system($cmd, $retval) //FAILS!! $cmd = "copy D:\\temp\\temp_2\\test.csv J:\\10_Operational\\INLIFESUPPORT\\HELPDESK\\test.csv"; system($cmd, $retval); yet checking the remote location in DOS... its all ok C:\>copy D:\temp\temp_2\test.csv J:\10_Operational\INLIFESUPPORT\HELPDESK\test.csv 1 file(s) copied. Reproduce code: --------------- $filename = "test.csv"; $dir_remote = "J:\\10_Operational\\INLIFESUPPORT\\HELPDESK\\"; $dir_local = "D:\\temp\\"; $dir_local2 = "D:\\temp\\temp_2\\"; //works fine copy($dir_local . $filename , $dir_local2 . $filename); //does not work.. copy($dir_local . $filename , $dir_remote . $filename); Expected result: ---------------- file copied to local and remote location Actual result: -------------- Warning: copy(J:\10_Operational\INLIFESUPPORT\HELPDESK\test.csv): failed to open stream: No such file or directory in ...