note 39053 deleted from function.ftp-nb-put by irchtml
| From: | irchtml@php.net | Date: | Wed, 12 Jan 2005 11:00:32 +0000 |
| Subject: | note 39053 deleted from function.ftp-nb-put by irchtml | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-83137@lists.php.net to get a copy of this message | ||
Note Submitter: phaphane at hotmail dot com
----
ftp_size function in exemple 2 is not good :
// Initialisation
$ret = ftp_nb_put ($my_connection, "test.remote", "test.local",
FTP_BINARY, ftp_size($my_connection, "test.remote"));
// ou bien : $ret = ftp_nb_put ($my_connection, "test.remote", "test.local",
// FTP_BINARY, FTP_AUTORESUME);
while ($ret == FTP_MOREDATA) {
// Faites ce que vous voulez
echo ".";
// Continue le téléchargement...
$ret = ftp_nb_continue ($my_connection);
}
if ($ret != FTP_FINISHED) {
echo "Il y a eu une erreur lors du chargement...";
exit(1);
}