cvs: phpdoc-zh /reference/ftp constants.xml functions.xml reference.xml
| From: | Chen bole | Date: | Fri, 08 Nov 2002 07:33:42 +0000 |
| Subject: | cvs: phpdoc-zh /reference/ftp constants.xml functions.xml reference.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-816@lists.php.net to get a copy of this message | ||
avenger Fri Nov 8 02:33:42 2002 EDT
Added files:
/phpdoc-zh/reference/ftp constants.xml functions.xml reference.xml
Log:
finished
Index: phpdoc-zh/reference/ftp/constants.xml
+++ phpdoc-zh/reference/ftp/constants.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: avenger $ -->
<!-- EN-Revision: 1.3 Maintainer: Avenger Status: ready -->
<section id="ftp.constants">
&reftitle.constants;
&extension.constants;
<variablelist>
<varlistentry>
<term>
<constant>FTP_ASCII</constant>
(<link linkend="language.types.integer">integer</link>)
</term>
<listitem>
<simpara>
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>FTP_TEXT</constant>
(<link linkend="language.types.integer">integer</link>)
</term>
<listitem>
<simpara>
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>FTP_BINARY</constant>
(<link linkend="language.types.integer">integer</link>)
</term>
<listitem>
<simpara>
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>FTP_IMAGE</constant>
(<link linkend="language.types.integer">integer</link>)
</term>
<listitem>
<simpara>
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>FTP_TIMEOUT_SEC</constant>
(<link linkend="language.types.integer">integer</link>)
</term>
<listitem>
<simpara>
²Î¿¼º¯Êý <function>ftp_set_option</function>¡£
</simpara>
</listitem>
</varlistentry>
</variablelist>
<simpara>
ÏÂÁбäÁ¿ÔÚ PHP 4.3.0 ÒÔºó°æ±¾Öб»¼ÓÈë¡£
</simpara>
<variablelist>
<varlistentry>
<term>
<constant>FTP_AUTOSEEK</constant>
(<link linkend="language.types.integer">integer</link>)
</term>
<listitem>
<simpara>
²Î¿¼º¯Êý <function>ftp_set_option</function>¡£
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>FTP_AUTORESUME</constant>
(<link linkend="language.types.integer">integer</link>)
</term>
<listitem>
<simpara>
Ϊ GET ºÍ PUT ÇëÇó×Ô¶¯¾ö¶¨»Ö¸´ºÍ¿ªÊ¼µÄλÖÃ
(Ö»Äܹ¤×÷ÔÚ FTP_AUTOSEEK ´ò¿ªµÄÇé¿öÏÂ)
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>FTP_FAILED</constant>
(<link linkend="language.types.integer">integer</link>)
</term>
<listitem>
<simpara>
Òì²½´«Êäʧ°Ü
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>FTP_FINISHED</constant>
(<link linkend="language.types.integer">integer</link>)
</term>
<listitem>
<simpara>
Òì²½´«Êä³É¹¦
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>FTP_MOREDATA</constant>
(<link linkend="language.types.integer">integer</link>)
</term>
<listitem>
<simpara>
Òì²½´«ÊäÊǻ״̬µÄ
</simpara>
</listitem>
</varlistentry>
</variablelist>
</section>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Index: phpdoc-zh/reference/ftp/functions.xml
+++ phpdoc-zh/reference/ftp/functions.xml
&reference.ftp.functions.ftp-cdup;
&reference.ftp.functions.ftp-chdir;
&reference.ftp.functions.ftp-close;
&reference.ftp.functions.ftp-connect;
&reference.ftp.functions.ftp-delete;
&reference.ftp.functions.ftp-exec;
&reference.ftp.functions.ftp-fget;
&reference.ftp.functions.ftp-fput;
&reference.ftp.functions.ftp-get-option;
&reference.ftp.functions.ftp-get;
&reference.ftp.functions.ftp-login;
&reference.ftp.functions.ftp-mdtm;
&reference.ftp.functions.ftp-mkdir;
&reference.ftp.functions.ftp-nb-continue;
&reference.ftp.functions.ftp-nb-fget;
&reference.ftp.functions.ftp-nb-fput;
&reference.ftp.functions.ftp-nb-get;
&reference.ftp.functions.ftp-nb-put;
&reference.ftp.functions.ftp-nlist;
&reference.ftp.functions.ftp-pasv;
&reference.ftp.functions.ftp-put;
&reference.ftp.functions.ftp-pwd;
&reference.ftp.functions.ftp-quit;
&reference.ftp.functions.ftp-rawlist;
&reference.ftp.functions.ftp-rename;
&reference.ftp.functions.ftp-rmdir;
&reference.ftp.functions.ftp-set-option;
&reference.ftp.functions.ftp-site;
&reference.ftp.functions.ftp-size;
&reference.ftp.functions.ftp-systype;
Index: phpdoc-zh/reference/ftp/reference.xml
+++ phpdoc-zh/reference/ftp/reference.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: avenger $ -->
<!-- EN-Revision: 1.5 Maintainer: Avenger Status: ready -->
<reference id="ref.ftp">
<title>FTP º¯Êý¿â</title>
<titleabbrev>FTP</titleabbrev>
<partintro>
<section id="ftp.intro">
&reftitle.intro;
<para>
FTP
º¯Êý¿â¿ÉÒÔ°ïÖúÄúʵÏÖ¿Í»§»úÓë·þÎñÆ÷Ö®¼ä°´ÕÕ±ê×¼Îļþ´«ËÍÐÒé
(FTP) µÄ¹æ·¶½øÐÐÎļþ´«ËÍ¡£FTP µÄÏêϸ¶¨Òå²Î¼û
<ulink url="&spec.ftp;">&spec.ftp;</ulink>.
</para>
</section>
<section id="ftp.requirements">
&reftitle.required;
&no.requirement;
</section>
<section id="ftp.installation">
&reftitle.install;
<para>
ÒªÔÚ PHP ÖÐ˳ÀûʹÓøú¯Êý¿â£¬ÄãÐèÒªÔÚ±àÒë PHP 4
ʱ¼ÓÈë
<link linkend="install.configure.enable-ftp">
<option role="configure">--enable-ftp</option></link>
Ñ¡Ïî»òÔÚ PHP 3 °æ±¾ÖмÓÈë <link
linkend="install.configure.with-ftp">
<option role="configure">--with-ftp</option></link>
Ñ¡ÏîÀ´Ö§³ÖËü¡£
</para>
</section>
<section id="ftp.configuration">
&reftitle.runtime;
&no.config;
</section>
<section id="ftp.resources">
&reftitle.resources;
<para>
ÔÚ FTP Ä£¿éÖÐʹÓÃÁËÒ»¸ö×ÊÔ´ÀàÐÍ£¬¸Ã×ÊÔ´ÀàÐÍΪ FTP
µÄÁ¬½Ó¾ä±ú¡£
</para>
</section>
&reference.ftp.constants;
<section id="ftp.examples">
&reftitle.examples;
<para>
<example>
<title>FTP ʵÀý</title>
<programlisting role="php">
<![CDATA[
<?php
// set up basic connection
$conn_id = ftp_connect($ftp_server);
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// check connection
if ((!$conn_id) || (!$login_result)) {
echo "FTP connection has failed!";
echo "Attempted to connect to $ftp_server for user $ftp_user_name";
die;
} else {
echo "Connected to $ftp_server, for user $ftp_user_name";
}
// upload the file
$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY);
// check upload status
if (!$upload) {
echo "FTP upload has failed!";
} else {
echo "Uploaded $source_file to $ftp_server as $destination_file";
}
// close the FTP stream
ftp_close($conn_id);
?>
]]>
</programlisting>
</example>
</para>
</section>
</partintro>
&reference.ftp.functions;
</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=xml
vi: ts=1 sw=1
-->