Hi,
i don't understand so well your problem.
If you find a command to place some file on client HD, you can't.
You can download something, under the control of browser, with right header.
// this for a jpeg
header('Content-type: image/jpeg');
//or for a word doc
header ("Content-type: application/msword");
//or for a excel file
header ("Content-type: application/vnd.ms-excel");
//or for a pdf file
header ("Content-type: application/pdf");
//or for a txt file
header ("Content-type: text/plain");
fpassthru($data);
But the action is browser dependent. For example Ie ask to user if want to save or exec, and some linux browser can have problem with ms application...
I hope this help you...
[edit]
i've reade this thread too
http://www.phpbuilder.com/board/showthread.php?
s=&threadid=10244892
The problem is that the image is diplayed by browser, not downloaded.
Try to give a different header, like this:
header ("Content-type: application/zip");
fpassthru("imagename.jpg");