Page 1 of 1

File copy over a network

Posted: Wed Sep 02, 2009 8:45 am
by acampos1916
Hi, i'm having a hard time trying to copy a file from a server to a client, both boxes are Windows XP, the server is running xampp 1.7.0. What i've done so far is share a folder in the client and connect to it as unit "F:" in the server. I can enter in command box and the line:

Code: Select all

copy C:/xxx F:/xxx
works great, returns "1 file copied". but the lines:

Code: Select all

exec(copy C:/xxx F:/xxx)
and:

Code: Select all

shell_exec(copy C:/xxx F:/xxx)
in my PHP code returns "0 files copied".

I already tried the PHP function:

Code: Select all

copy(C:/xxx,F:/xxx)
, wich tells me that it can't find the file or directory "F:/".

Any help will be apreciated. Thanks.