Where is the downloaded file: ftp_get

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
mikebr
Forum Contributor
Posts: 243
Joined: Sat Sep 28, 2002 7:05 am

Where is the downloaded file: ftp_get

Post by mikebr »

I am using a ftp script and find that the script tells me the file is downloaded but I can't find where, the code is:

Code: Select all

<?php

ftp_chdir($result, $cdir);

for ($x=0; $x<sizeof($dfile); $x++) {
ftp_get($result, $dfile[$x], $dfile[$x], FTP_BINARY);
}

?>
I am tryimg to download to the users desktop but my above code does not seem to be doing that, I have search my HD to find the file by it's name but no joy, antone see what the problem might be?
Post Reply