note 51819 deleted from function.ftp-get by betz

From: Date: Tue, 12 Apr 2005 13:49:48 +0000
Subject: note 51819 deleted from function.ftp-get by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-87901@lists.php.net to get a copy of this message
Note Submitter: agelfr at yahoo dot fr Reason: spam ---- 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

« previous php.notes (#87901) next »