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";