note 39053 added to function.ftp-nb-put
| From: | phaphane at hotmail dot com | Date: | Thu, 15 Jan 2004 15:21:12 +0000 |
| Subject: | note 39053 added to function.ftp-nb-put | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63622@lists.php.net to get a copy of this message | ||
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);
}
----
Manual Page -- http://www.php.net/manual/en/function.ftp-nb-put.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39053
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39053&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39053&report=yes
Search -- http://master.php.net/manage/user-notes.php