file uploading

hi
I am new in client server application.How can i upload a file from the server
to the client using php.I use the following code

exec('xcopy c:\\php E:\\a\b\php /e/i', $a, $a1);

But it works only if the destination path is in the server.Is there any other way to do this?Also when i assign the file path in to a variable and used in the above code it doesn't work.
[407 byte] By [anissurendran] at [2007-11-19 19:27:10]
# 1 Re: file uploading
check out the docu on php.net:
http://www.php.net/manual/en/features.file-upload.php
bigBA at 2007-11-10 3:57:46 >
# 2 Re: file uploading
I am new in client server application.How can i upload a file from the server
to the client using php.

oh, overseen this...

well, short: no way.

you can just provide a download link to the user, which he can click on and download the file himself.
no way to force a download from the servers side.
you have to have something on the client side which triggers the download.
bigBA at 2007-11-10 3:58:47 >