mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix missing </para> and WS
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@61695 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
719ca0c2e6
commit
60e0e4df63
1 changed files with 56 additions and 31 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.23 $ -->
|
||||
<!-- $Revision: 1.24 $ -->
|
||||
<reference id="ref.ftp">
|
||||
<title>FTP functions</title>
|
||||
<titleabbrev>FTP</titleabbrev>
|
||||
|
@ -22,10 +22,10 @@
|
|||
and <link linkend="install.configure.with-ftp">
|
||||
<option>--with-ftp</option></link> when using PHP 3.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>ftp</function> example</title>
|
||||
<programlisting>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>ftp</function> example</title>
|
||||
<programlisting>
|
||||
<?php
|
||||
// set up basic connection
|
||||
$conn_id = ftp_connect("$ftp_server");
|
||||
|
@ -76,12 +76,14 @@ ftp_quit($conn_id);
|
|||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Returns a FTP stream on success, &false; on error.</para>
|
||||
Returns a FTP stream on success, &false; on error.
|
||||
</para>
|
||||
<para>
|
||||
<function>ftp_connect</function> opens up a FTP connection to the
|
||||
specified <parameter>host</parameter>. The <parameter>port</parameter>
|
||||
parameter specifies an alternate port to connect to. If it is
|
||||
omitted or zero, then the default FTP port, 21, will be used.</para>
|
||||
omitted or zero, then the default FTP port, 21, will be used.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -102,9 +104,11 @@ ftp_quit($conn_id);
|
|||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Logs in the given FTP stream.</para>
|
||||
Logs in the given FTP stream.
|
||||
</para>
|
||||
<para>
|
||||
Returns &true; on success, &false; on error.</para>
|
||||
Returns &true; on success, &false; on error.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -122,7 +126,8 @@ ftp_quit($conn_id);
|
|||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Returns the current directory, or &false; on error.</para>
|
||||
Returns the current directory, or &false; on error.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -140,9 +145,11 @@ ftp_quit($conn_id);
|
|||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Changes to the parent directory.</para>
|
||||
Changes to the parent directory.
|
||||
</para>
|
||||
<para>
|
||||
Returns &true; on success, &false; on error.</para>
|
||||
Returns &true; on success, &false; on error.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -161,7 +168,8 @@ ftp_quit($conn_id);
|
|||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Changes to the specified <parameter>directory</parameter>.</para>
|
||||
Changes to the specified <parameter>directory</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
Returns &true; on success, &false; on error.</para>
|
||||
</refsect1>
|
||||
|
@ -182,7 +190,8 @@ ftp_quit($conn_id);
|
|||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Creates the specified <parameter>directory</parameter>.</para>
|
||||
Creates the specified <parameter>directory</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
Returns the newly created directory name on success, &false; on error.</para>
|
||||
</refsect1>
|
||||
|
@ -203,7 +212,8 @@ ftp_quit($conn_id);
|
|||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Removes the specified <parameter>directory</parameter>.</para>
|
||||
Removes the specified <parameter>directory</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
Returns &true; on success, &false; on error.</para>
|
||||
</refsect1>
|
||||
|
@ -224,7 +234,8 @@ ftp_quit($conn_id);
|
|||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Returns an array of filenames on success, &false; on error.</para>
|
||||
Returns an array of filenames on success, &false; on error.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -249,7 +260,8 @@ ftp_quit($conn_id);
|
|||
and returns the result as an array. Each array element corresponds
|
||||
to one line of text. The output is not parsed in any way. The
|
||||
system type identifier returned by <function>ftp_systype</function>
|
||||
can be used to determine how the results should be interpreted.</para>
|
||||
can be used to determine how the results should be interpreted.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -269,7 +281,8 @@ ftp_quit($conn_id);
|
|||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Returns the remote system type, or &false; on error.</para>
|
||||
Returns the remote system type, or &false; on error.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -292,9 +305,11 @@ ftp_quit($conn_id);
|
|||
<parameter>pasv</parameter> parameter is &true; (it turns off
|
||||
passive mode if <parameter>pasv</parameter> is &false;.) In
|
||||
passive mode, data connections are initiated by the client,
|
||||
rather than by the server.</para>
|
||||
rather than by the server.
|
||||
</para>
|
||||
<para>
|
||||
Returns &true; on success, &false; on error.</para>
|
||||
Returns &true; on success, &false; on error.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -322,7 +337,8 @@ ftp_quit($conn_id);
|
|||
<constant>FTP_BINARY</constant>.
|
||||
</para>
|
||||
<para>
|
||||
Returns &true; on success, &false; on error.</para>
|
||||
Returns &true; on success, &false; on error.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -348,9 +364,11 @@ ftp_quit($conn_id);
|
|||
from the FTP server, and writes it to the given file pointer,
|
||||
<parameter>fp</parameter>. The transfer <parameter>mode</parameter>
|
||||
specified must be either <constant>FTP_ASCII</constant> or
|
||||
<constant>FTP_BINARY</constant>.</para>
|
||||
<constant>FTP_BINARY</constant>.
|
||||
</para>
|
||||
<para>
|
||||
Returns &true; on success, &false; on error.</para>
|
||||
Returns &true; on success, &false; on error.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -377,7 +395,8 @@ ftp_quit($conn_id);
|
|||
<constant>FTP_ASCII</constant> or <constant>FTP_BINARY</constant>.
|
||||
</para>
|
||||
<para>
|
||||
Returns &true; on success, &false; on error.</para>
|
||||
Returns &true; on success, &false; on error.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>ftp_put</function> example</title>
|
||||
|
@ -413,7 +432,8 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII);
|
|||
<constant>FTP_ASCII</constant> or <constant>FTP_BINARY</constant>
|
||||
</para>
|
||||
<para>
|
||||
Returns &true; on success, &false; on error.</para>
|
||||
Returns &true; on success, &false; on error.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -436,7 +456,8 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII);
|
|||
error occurs, of if the file does not exist, -1 is returned. Not
|
||||
all servers support this feature.</para>
|
||||
<para>
|
||||
Returns the file size on success, or -1 on error.</para>
|
||||
Returns the file size on success, or -1 on error.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -461,7 +482,8 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII);
|
|||
support this feature.
|
||||
</para>
|
||||
<para>
|
||||
Returns a UNIX timestamp on success, or -1 on error.</para>
|
||||
Returns a UNIX timestamp on success, or -1 on error.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
<function>ftp_mdtm</function> does not work with directories.
|
||||
|
@ -485,7 +507,6 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII);
|
|||
<paramdef>string <parameter>to</parameter></paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
</para>
|
||||
<para>
|
||||
<function>ftp_rename</function> renames the file or directory
|
||||
currently named <parameter>from</parameter> to the new name
|
||||
|
@ -493,6 +514,7 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII);
|
|||
</para>
|
||||
<para>
|
||||
Returns &true; on success, &false; on error.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -515,7 +537,8 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII);
|
|||
<parameter>path</parameter> from the FTP server.
|
||||
</para>
|
||||
<para>
|
||||
Returns &true; on success, &false; on error.</para>
|
||||
Returns &true; on success, &false; on error.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
@ -538,9 +561,11 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII);
|
|||
<parameter>cmd</parameter> to the FTP server. SITE commands
|
||||
are not standardized, and vary from server to server. They are
|
||||
useful for handling such things as file permissions and group
|
||||
membership. </para>
|
||||
membership.
|
||||
</para>
|
||||
<para>
|
||||
Returns &true; on success, &false; on error.</para>
|
||||
Returns &true; on success, &false; on error.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue