ftp_nb_continue
ftp_nb_continue
Continues retrieving/sending a file (non-blocking)
int **ftp_nb_continue** FTP\Connection $ftp
Continues retrieving/sending a file non-blocking.
ftp
Returns or
or .
FTP_FAILED``FTP_FINISHED``FTP_MOREDATA
Voorbeeld: example
<?php
// Initiate the download
$ret = ftp_nb_get($ftp, "test", "README", FTP_BINARY);
while ($ret == FTP_MOREDATA) {
// Continue downloading...
$ret = ftp_nb_continue($ftp);
}
if ($ret != FTP_FINISHED) {
echo "There was an error downloading the file...";
exit(1);
}
?>