Still can't copy file to remote server
| From: | Karen Resplendo | Date: | Fri, 24 Oct 2003 23:11:24 +0000 |
| Subject: | Still can't copy file to remote server | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-31296@lists.php.net to get a copy of this message | ||
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