mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Add description of resumepos parameter. Fix example.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@190237 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
86d3f2ae9f
commit
aa2db200ab
1 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<refentry id="function.ftp-fget">
|
||||
<refnamediv>
|
||||
<refname>ftp_fget</refname>
|
||||
|
@ -60,7 +60,9 @@
|
|||
<varlistentry>
|
||||
<term><parameter>resumepos</parameter></term>
|
||||
<listitem>
|
||||
<para></para>
|
||||
<para>
|
||||
The position in the remote file to start downloading from.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue