Want help in pht download
Following is code part of my applicaitoni, It downloads one file(zip) of ftp server but i wouldlike to download all the files (zip) from ftp server. could anybody expand it.
................................................starting of code...................................
$server_file = '20060601_group_0006_pri.zip';
$local_file = '20060601_group_0006_pri.zip';
$downloadfile = ftp_get($, $local_file, $server_file, FTP_BINARY);
if (!$downloadfile) {
echo "Ftp download has failed!<BR>";
}
else {
echo "Downloaded Success<BR>";
}
close the connection
ftp_close($conn_id);
.................................................end of code...................................
Ramesh chaudhary
Nepal
Re: Want help in pht download
Use a loop to select then download all the files you want from your site.