From aa2db200ab8a6163818299d628c84b0e619b4efd Mon Sep 17 00:00:00 2001 From: Matt Li Date: Fri, 8 Jul 2005 08:50:18 +0000 Subject: [PATCH] Add description of resumepos parameter. Fix example. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@190237 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/ftp/functions/ftp-fget.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reference/ftp/functions/ftp-fget.xml b/reference/ftp/functions/ftp-fget.xml index e824016600..95d873b9bf 100644 --- a/reference/ftp/functions/ftp-fget.xml +++ b/reference/ftp/functions/ftp-fget.xml @@ -1,5 +1,5 @@ - + ftp_fget @@ -60,7 +60,9 @@ resumepos - + + The position in the remote file to start downloading from. + @@ -92,7 +94,7 @@ $conn_id = ftp_connect($ftp_server); $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // try to download $file -if (ftp_fget($conn_id, $handle, $remote_file, FTP_ASCII, 1)) { +if (ftp_fget($conn_id, $handle, $remote_file, FTP_ASCII, 0)) { echo "successfully written to $file\n"; } else { echo "There was a problem with $file\n";