mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Generate FTP methodsynopses based on stubs
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de> Closes GH-305.
This commit is contained in:
parent
2f4863e1f6
commit
18680fd168
35 changed files with 160 additions and 196 deletions
|
@ -9,9 +9,9 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_alloc</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>filesize</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter role="reference">result</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>size</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter role="reference">response</parameter><initializer>&null;</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Sends an <literal>ALLO</literal> command to the remote FTP server to
|
||||
|
@ -34,7 +34,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -42,7 +42,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>filesize</parameter></term>
|
||||
<term><parameter>size</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The number of bytes to allocate.
|
||||
|
@ -50,11 +50,11 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>result</parameter></term>
|
||||
<term><parameter>response</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
A textual representation of the servers response will be returned by
|
||||
reference in <parameter>result</parameter> if a variable is provided.
|
||||
reference in <parameter>response</parameter> if a variable is provided.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -107,7 +107,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
|
||||
<refentry xml:id="function.ftp-append" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<refnamediv>
|
||||
<refname>ftp_append</refname>
|
||||
|
@ -12,8 +11,8 @@
|
|||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_append</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_file</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>local_file</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_filename</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>local_filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>FTP_BINARY</constant></initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
|
@ -36,7 +35,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>remote_file</parameter></term>
|
||||
<term><parameter>remote_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
|
||||
|
@ -44,7 +43,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>local_file</parameter></term>
|
||||
<term><parameter>local_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
|
||||
|
@ -70,7 +69,6 @@
|
|||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_cdup</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Changes to the parent directory.
|
||||
|
@ -20,7 +20,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -81,7 +81,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_chdir</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
|
@ -21,7 +21,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -93,7 +93,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -8,14 +8,14 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>ftp_chmod</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>mode</parameter></methodparam>
|
||||
<type class="union"><type>int</type><type>false</type></type><methodname>ftp_chmod</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>permissions</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Sets the permissions on the specified remote file to
|
||||
<parameter>mode</parameter>.
|
||||
<parameter>permissions</parameter>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
|
@ -23,7 +23,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -31,7 +31,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>mode</parameter></term>
|
||||
<term><parameter>permissions</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The new permissions, given as an <emphasis>octal</emphasis> value.
|
||||
|
@ -95,7 +95,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_close</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_close</function> closes the given link identifier
|
||||
|
@ -27,7 +27,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -78,7 +78,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -8,14 +8,14 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>resource</type><methodname>ftp_connect</methodname>
|
||||
<methodparam><type>string</type><parameter>host</parameter></methodparam>
|
||||
<type class="union"><type>resource</type><type>false</type></type><methodname>ftp_connect</methodname>
|
||||
<methodparam><type>string</type><parameter>hostname</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>port</parameter><initializer>21</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>timeout</parameter><initializer>90</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_connect</function> opens an FTP connection to the
|
||||
specified <parameter>host</parameter>.
|
||||
specified <parameter>hostname</parameter>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
|
@ -23,7 +23,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>host</parameter></term>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The FTP server address. This parameter shouldn't have any trailing
|
||||
|
@ -90,7 +90,6 @@ $conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server");
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_delete</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>path</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_delete</function> deletes the file specified by
|
||||
<parameter>path</parameter> from the FTP server.
|
||||
<parameter>filename</parameter> from the FTP server.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
|
@ -22,7 +22,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -30,7 +30,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>path</parameter></term>
|
||||
<term><parameter>filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The file to delete.
|
||||
|
@ -78,7 +78,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.ftp-exec' xmlns="http://docbook.org/ns/docbook">
|
||||
<refentry xml:id="function.ftp-exec" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>ftp_exec</refname>
|
||||
<refpurpose>Requests execution of a command on the FTP server</refpurpose>
|
||||
|
@ -9,7 +9,7 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_exec</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>command</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -90,7 +90,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,14 +9,14 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_fget</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_file</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>stream</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>FTP_BINARY</constant></initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>resumepos</parameter><initializer>0</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>offset</parameter><initializer>0</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_fget</function> retrieves <parameter>remote_file</parameter>
|
||||
<function>ftp_fget</function> retrieves <parameter>remote_filename</parameter>
|
||||
from the FTP server, and writes it to the given file pointer.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -25,7 +25,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -33,7 +33,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>handle</parameter></term>
|
||||
<term><parameter>stream</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
An open file pointer in which we store the data.
|
||||
|
@ -41,7 +41,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>remote_file</parameter></term>
|
||||
<term><parameter>remote_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The remote file path.
|
||||
|
@ -58,7 +58,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>resumepos</parameter></term>
|
||||
<term><parameter>offset</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The position in the remote file to start downloading from.
|
||||
|
@ -147,7 +147,6 @@ fclose($handle);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_fput</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_file</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_filename</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>stream</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>FTP_BINARY</constant></initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>startpos</parameter><initializer>0</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>offset</parameter><initializer>0</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_fput</function> uploads the data from a file pointer
|
||||
|
@ -25,7 +25,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -33,7 +33,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>remote_file</parameter></term>
|
||||
<term><parameter>remote_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The remote file path.
|
||||
|
@ -41,7 +41,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>handle</parameter></term>
|
||||
<term><parameter>stream</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
An open file pointer on the local file. Reading stops at end of file.
|
||||
|
@ -58,7 +58,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>startpos</parameter></term>
|
||||
<term><parameter>offset</parameter></term>
|
||||
<listitem>
|
||||
<para>The position in the remote file to start uploading to.</para>
|
||||
</listitem>
|
||||
|
@ -143,7 +143,6 @@ fclose($fp);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.ftp-get-option' xmlns="http://docbook.org/ns/docbook">
|
||||
<refentry xml:id="function.ftp-get-option" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>ftp_get_option</refname>
|
||||
<refpurpose>Retrieves various runtime behaviours of the current FTP stream</refpurpose>
|
||||
|
@ -8,8 +8,8 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>mixed</type><methodname>ftp_get_option</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<type class="union"><type>int</type><type>bool</type></type><methodname>ftp_get_option</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>option</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -92,7 +92,6 @@ $timeout = ftp_get_option($conn_id, FTP_TIMEOUT_SEC);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_get</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>local_file</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_file</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>local_filename</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>FTP_BINARY</constant></initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>resumepos</parameter><initializer>0</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>offset</parameter><initializer>0</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_get</function> retrieves a remote file from the FTP server,
|
||||
|
@ -25,7 +25,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -33,7 +33,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>local_file</parameter></term>
|
||||
<term><parameter>local_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The local file path (will be overwritten if the file already exists).
|
||||
|
@ -41,7 +41,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>remote_file</parameter></term>
|
||||
<term><parameter>remote_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The remote file path.
|
||||
|
@ -58,7 +58,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>resumepos</parameter></term>
|
||||
<term><parameter>offset</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The position in the remote file to start downloading from.
|
||||
|
@ -145,7 +145,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_login</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>username</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>password</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -87,7 +87,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>ftp_mdtm</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_file</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_mdtm</function> gets the last modified time for a remote
|
||||
|
@ -32,7 +32,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -40,7 +40,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>remote_file</parameter></term>
|
||||
<term><parameter>filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The file from which to extract the last modification time.
|
||||
|
@ -94,7 +94,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>ftp_mkdir</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<type class="union"><type>string</type><type>false</type></type><methodname>ftp_mkdir</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
|
@ -21,7 +21,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -86,7 +86,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>ftp_mlsd</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<type class="union"><type>array</type><type>false</type></type><methodname>ftp_mlsd</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</refsect1>
|
||||
|
@ -18,7 +18,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -182,7 +182,6 @@ array(5) {
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>ftp_nb_continue</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Continues retrieving/sending a file non-blocking.
|
||||
|
@ -20,7 +20,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -64,7 +64,6 @@ if ($ret != FTP_FINISHED) {
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>ftp_nb_fget</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_file</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>stream</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>FTP_BINARY</constant></initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>resumepos</parameter><initializer>0</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>offset</parameter><initializer>0</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_nb_fget</function> retrieves a remote file from the FTP
|
||||
|
@ -30,7 +30,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -38,7 +38,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>handle</parameter></term>
|
||||
<term><parameter>stream</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
An open file pointer in which we store the data.
|
||||
|
@ -46,7 +46,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>remote_file</parameter></term>
|
||||
<term><parameter>remote_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The remote file path.
|
||||
|
@ -63,7 +63,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>resumepos</parameter></term>
|
||||
<term><parameter>offset</parameter></term>
|
||||
<listitem>
|
||||
<para>The position in the remote file to start downloading from.</para>
|
||||
</listitem>
|
||||
|
@ -154,7 +154,6 @@ fclose($fp);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>ftp_nb_fput</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_file</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_filename</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>stream</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>FTP_BINARY</constant></initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>startpos</parameter><initializer>0</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>offset</parameter><initializer>0</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_nb_fput</function> uploads the data from a file pointer to
|
||||
|
@ -30,7 +30,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -38,7 +38,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>remote_file</parameter></term>
|
||||
<term><parameter>remote_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The remote file path.
|
||||
|
@ -46,7 +46,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>handle</parameter></term>
|
||||
<term><parameter>stream</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
An open file pointer on the local file. Reading stops at end of file.
|
||||
|
@ -63,7 +63,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>startpos</parameter></term>
|
||||
<term><parameter>offset</parameter></term>
|
||||
<listitem>
|
||||
<para>The position in the remote file to start uploading to.</para>
|
||||
</listitem>
|
||||
|
@ -153,7 +153,6 @@ fclose($fp);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>ftp_nb_get</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>local_file</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_file</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>local_filename</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>FTP_BINARY</constant></initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>resumepos</parameter><initializer>0</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>offset</parameter><initializer>0</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_nb_get</function> retrieves a remote file from the FTP server,
|
||||
|
@ -30,7 +30,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -38,7 +38,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>local_file</parameter></term>
|
||||
<term><parameter>local_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The local file path (will be overwritten if the file already exists).
|
||||
|
@ -46,7 +46,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>remote_file</parameter></term>
|
||||
<term><parameter>remote_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The remote file path.
|
||||
|
@ -63,7 +63,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>resumepos</parameter></term>
|
||||
<term><parameter>offset</parameter></term>
|
||||
<listitem>
|
||||
<para>The position in the remote file to start downloading from.</para>
|
||||
</listitem>
|
||||
|
@ -202,7 +202,6 @@ while ($ret == FTP_MOREDATA) {
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>ftp_nb_put</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_file</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>local_file</parameter></methodparam>
|
||||
<type class="union"><type>int</type><type>false</type></type><methodname>ftp_nb_put</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_filename</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>local_filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>FTP_BINARY</constant></initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>startpos</parameter><initializer>0</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>offset</parameter><initializer>0</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_nb_put</function> stores a local file on the FTP server.
|
||||
|
@ -29,7 +29,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -37,7 +37,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>remote_file</parameter></term>
|
||||
<term><parameter>remote_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The remote file path.
|
||||
|
@ -45,7 +45,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>local_file</parameter></term>
|
||||
<term><parameter>local_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The local file path.
|
||||
|
@ -62,7 +62,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>startpos</parameter></term>
|
||||
<term><parameter>offset</parameter></term>
|
||||
<listitem>
|
||||
<para>The position in the remote file to start uploading to.</para>
|
||||
</listitem>
|
||||
|
@ -74,7 +74,7 @@
|
|||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns <constant>FTP_FAILED</constant> or <constant>FTP_FINISHED</constant>
|
||||
or <constant>FTP_MOREDATA</constant>.
|
||||
or <constant>FTP_MOREDATA</constant>, or &false; on failure to open the local file.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
@ -170,7 +170,6 @@ if ($ret != FTP_FINISHED) {
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>ftp_nlist</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<type class="union"><type>array</type><type>false</type></type><methodname>ftp_nlist</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</refsect1>
|
||||
|
@ -18,7 +18,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -95,7 +95,6 @@ array(3) {
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_pasv</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>bool</type><parameter>pasv</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>bool</type><parameter>enable</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_pasv</function> turns on or off passive mode. In
|
||||
|
@ -28,7 +28,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -36,7 +36,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>pasv</parameter></term>
|
||||
<term><parameter>enable</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
If &true;, the passive mode is turned on, else it's turned off.
|
||||
|
@ -88,7 +88,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_put</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_file</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>local_file</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_filename</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>local_filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>FTP_BINARY</constant></initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>startpos</parameter><initializer>0</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>offset</parameter><initializer>0</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_put</function> stores a local file on the FTP server.
|
||||
|
@ -24,7 +24,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -32,7 +32,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>remote_file</parameter></term>
|
||||
<term><parameter>remote_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The remote file path.
|
||||
|
@ -40,7 +40,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>local_file</parameter></term>
|
||||
<term><parameter>local_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The local file path.
|
||||
|
@ -57,7 +57,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>startpos</parameter></term>
|
||||
<term><parameter>offset</parameter></term>
|
||||
<listitem>
|
||||
<para>The position in the remote file to start uploading to.</para>
|
||||
</listitem>
|
||||
|
@ -139,7 +139,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>ftp_pwd</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<type class="union"><type>string</type><type>false</type></type><methodname>ftp_pwd</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
</para>
|
||||
|
@ -19,7 +19,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -74,7 +74,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>ftp_raw</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>command</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
|
@ -21,7 +21,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -76,7 +76,6 @@ ftp_raw($fp, "PASS secret");
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>ftp_rawlist</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<type class="union"><type>array</type><type>false</type></type><methodname>ftp_rawlist</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>recursive</parameter><initializer>&false;</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
|
@ -23,7 +23,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -114,7 +114,6 @@ array(3) {
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_rename</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>oldname</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>newname</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>from</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>to</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_rename</function> renames a file or a directory on the FTP
|
||||
|
@ -23,7 +23,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -31,7 +31,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>oldname</parameter></term>
|
||||
<term><parameter>from</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The old file/directory name.
|
||||
|
@ -39,7 +39,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>newname</parameter></term>
|
||||
<term><parameter>to</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The new name.
|
||||
|
@ -89,7 +89,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_rmdir</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
|
@ -21,7 +21,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -87,7 +87,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.ftp-set-option' xmlns="http://docbook.org/ns/docbook">
|
||||
<refentry xml:id="function.ftp-set-option" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>ftp_set_option</refname>
|
||||
<refpurpose>Set miscellaneous runtime FTP options</refpurpose>
|
||||
|
@ -9,9 +9,9 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_set_option</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>option</parameter></methodparam>
|
||||
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
|
||||
<methodparam><type class="union"><type>int</type><type>bool</type></type><parameter>value</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function controls various runtime options for the specified FTP
|
||||
|
@ -23,7 +23,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -115,7 +115,6 @@ ftp_set_option($conn_id, FTP_TIMEOUT_SEC, 10);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>ftp_site</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>command</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
|
@ -27,7 +27,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -88,7 +88,6 @@ if (ftp_site($conn, 'CHMOD 0600 /home/user/privatefile')) {
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>ftp_size</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>remote_file</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_size</function> returns the size of the given file in
|
||||
|
@ -27,7 +27,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -35,7 +35,7 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>remote_file</parameter></term>
|
||||
<term><parameter>filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The remote file.
|
||||
|
@ -95,7 +95,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -8,14 +8,14 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>resource</type><methodname>ftp_ssl_connect</methodname>
|
||||
<methodparam><type>string</type><parameter>host</parameter></methodparam>
|
||||
<type class="union"><type>resource</type><type>false</type></type><methodname>ftp_ssl_connect</methodname>
|
||||
<methodparam><type>string</type><parameter>hostname</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>port</parameter><initializer>21</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>timeout</parameter><initializer>90</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>ftp_ssl_connect</function> opens an <emphasis>explicit</emphasis> SSL-FTP connection to the
|
||||
specified <parameter>host</parameter>. That implies that
|
||||
specified <parameter>hostname</parameter>. That implies that
|
||||
<function>ftp_ssl_connect</function> will succeed even if the server is not
|
||||
configured for SSL-FTP, or its certificate is invalid. Only when
|
||||
<function>ftp_login</function> is called, the client will send the
|
||||
|
@ -44,7 +44,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>host</parameter></term>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The FTP server address. This parameter shouldn't have any trailing
|
||||
|
@ -121,7 +121,6 @@ ftp_close($conn_id);
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>ftp_systype</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
|
||||
<type class="union"><type>string</type><type>false</type></type><methodname>ftp_systype</methodname>
|
||||
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the system type identifier of the remote FTP server.
|
||||
|
@ -20,7 +20,7 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>ftp_stream</parameter></term>
|
||||
<term><parameter>ftp</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The link identifier of the FTP connection.
|
||||
|
@ -69,7 +69,6 @@ Example.com is powered by UNIX
|
|||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
Loading…
Reference in a new issue