Still can't copy file to remote server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've been able to do using the Command Prompt on the webserver where PHP is housed, but it doesn't work in PHP:
 
$cmd= 'cmd /c copy "C:\Program Files\Apache13 14\Apache\htdocs\AsciiCheck\a.txt" "F:\" ';
print $cmd."<br>";
passthru($cmd);
 
This is the output on the php page:
cmd /c copy "C:\Program Files\Apache13 14\Apache\htdocs\AsciiCheck\a.txt" "F:\" 
0 file(s) copied. 
 
NET USE doesn't work either:
$cmd= 'NET USE G: \\110.154.138.27\AsciiUploads "xxxng" /USER:"tess" ';
print $cmd."<br>";
passthru($cmd);
 
I


---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux