note 37675 added to function.ftp-get

From: Date: Sat, 22 Nov 2003 19:25:53 +0000
Subject: note 37675 added to function.ftp-get
Groups: php.notes 
Request: Send a blank email to php-notes+get-60824@lists.php.net to get a copy of this message
If you previously downloaded a file before (like a huge web log), and just want to get the remaining portion, do this: $local_file_size = filesize($local_file_path); $get_result = ftp_get($conn_id, $local_file_path, $remote_file_path, FTP_BINARY, $local_file_size); This same code works regardless of wether the local file exists already or not. You should first test to make sure the local file is not bigger than the remote file. ---- Manual Page -- http://www.php.net/manual/en/function.ftp-get.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37675 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37675&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37675&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#60824) next »