(PHP 4 >= 4.3.0, PHP 5)
ftp_nb_continue — Reprend le téléchargement d'un fichier (non bloquant)
ftp_nb_continue() reprend le téléchargement d'un fichier sur la connexion ftp_stream , de manière asynchrone.
L'identifiant du lien de connexion FTP.
Retourne FTP_FAILED ou FTP_FINISHED ou FTP_MOREDATA .
Exemple 878. ftp_nb_continue() example
<?php
// Initialisation du téléchargement
$ret
=
ftp_nb_get
(
$my_connection
,
"test"
,
"README"
,
FTP_BINARY
);
while (
$ret
==
FTP_MOREDATA
) {
// Continue le téléchargement...
$ret
=
ftp_nb_continue
(
$my_connection
);
}
if (
$ret
!=
FTP_FINISHED
) {
echo
"Il y a eu une erreur pendant le téléchargement du fichier..."
;
exit(
1
);
}
?>