File copy over a network

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
acampos1916
Forum Newbie
Posts: 1
Joined: Wed Sep 02, 2009 8:24 am

File copy over a network

Post 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.
Post Reply