note 51819 added to function.ftp-get
| From: | agelfratyahoodotfr at osu1 dot php dot net | Date: | Tue, 12 Apr 2005 08:55:34 +0000 |
| Subject: | note 51819 added to function.ftp-get | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87880@lists.php.net to get a copy of this message | ||
Hi,
My problem is that sometimes, i have a file downloaded that has a size of zero. The only way this
could happen is because the connection have been interrupted and the file is left at this size,
right ?
Will this work ?
while(filesize($localfile)<<ftp_size($Conn_Id, $FTP_file))
{
ftp_get($Conn_Id, $localfile, $FTP_file,FTP_BINARY);
}
Evidently, i'll add controling functions in this loop but
what if the connection is interrupted while downloading..?
nb: sorry if my english is approximative but english isn't my maternal language.
Thanks in advance, Julien
----
Manual Page -- http://www.php.net/manual/en/function.ftp-get.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51819
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51819&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51819&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51819&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51819&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51819&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51819&report=yes
Search -- http://master.php.net/manage/user-notes.php