cvs: phpdoc-zh /reference/ftp/functions ftp-put.xml ftp-pwd.xml ftp-quit.xml

From: Date: Mon, 21 Apr 2008 08:29:44 +0000
Subject: cvs: phpdoc-zh /reference/ftp/functions ftp-put.xml ftp-pwd.xml ftp-quit.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2991@lists.php.net to get a copy of this message
avenger Mon Apr 21 08:29:44 2008 UTC Modified files: /phpdoc-zh/reference/ftp/functions ftp-put.xml ftp-pwd.xml ftp-quit.xml Log: up to date

http://cvs.php.net/viewvc.cgi/phpdoc-zh/reference/ftp/functions/ftp-put.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-zh/reference/ftp/functions/ftp-put.xml diff -u phpdoc-zh/reference/ftp/functions/ftp-put.xml:1.4 phpdoc-zh/reference/ftp/functions/ftp-put.xml:1.5 --- phpdoc-zh/reference/ftp/functions/ftp-put.xml:1.4 Sat Jun 23 13:32:46 2007 +++ phpdoc-zh/reference/ftp/functions/ftp-put.xml Mon Apr 21 08:29:44 2008 @@ -1,14 +1,13 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: bjori $ --> -<!-- EN-Revision: 1.6 Maintainer: Avenger Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.10 Maintainer: Avenger Status: ready --> <refentry xml:id="function.ftp-put" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ftp_put</refname> <refpurpose>ÉÏ´«Îļþµ½ FTP ·þÎñÆ÷</refpurpose> </refnamediv> - <refsect1> - <title>˵Ã÷</title> + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ftp_put</methodname> <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> @@ -21,34 +20,126 @@ <function>ftp_put</function> º¯ÊýÓÃÀ´ÉÏ´«ÓÉ <parameter>local_file</parameter> ²ÎÊýÖ¸¶¨µÄÎļþµ½ FTP ·þÎñÆ÷£¬ÉÏ´«ºóµÄλÖÃÓÉ <parameter>remote_file</parameter> Ö¸¶¨¡£´«Êäģʽ²ÎÊý - <parameter>mode</parameter> Ö»ÄÜΪ <constant>FTP_ASCII</constant>£¨Îı¾Ä£Ê½£©»ò <constant>FTP_BINARY</constant>£¨¶þ½øÖÆÄ£Ê½£©¡£ - </para> - <note> - <para> - ²ÎÊý <parameter>startpos</parameter> ½öÊÊÓÃÓÚ PHP 4.3.0 ÒÔÉϰ汾¡£ - </para> - </note> - <para> - &return.success; </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>ftp_stream</parameter></term> + <listitem> + <para> + FTP Á¬½Ó×ÊÔ´¡£ + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>remote_file</parameter></term> + <listitem> + <para> + Ô¶³ÌÎļþ·¾¶¡£ + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>local_file</parameter></term> + <listitem> + <para> + ±¾µØÎļþ·¾¶¡£ + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>mode</parameter></term> + <listitem> + <para> + ´«ËÍģʽ£¬Ö»ÄÜΪ <constant>FTP_ASCII</constant>£¨Îı¾Ä£Ê½£©»ò <constant>FTP_BINARY</constant>£¨¶þ½øÖÆÄ£Ê½£©¡£ + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>startpos</parameter></term> + <listitem> + <para></para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; <para> <example> <title><function>ftp_put</function> ʵÀý</title> - <programlisting role="php"> + <programlisting role="php"> <![CDATA[ <?php -$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_ASCII); +$file = 'somefile.txt'; +$remote_file = 'readme.txt'; + +// 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); + +// upload a file +if (ftp_put($conn_id, $remote_file, $file, FTP_ASCII)) { + echo "successfully uploaded $file\n"; +} else { + echo "There was a problem while uploading $file\n"; +} + +// close the connection +ftp_close($conn_id); ?> ]]> - </programlisting> - </example> - </para> - <para> - ²Î¼û <function>ftp_fput</function>£¬<function>ftp_nb_fput</function> - ºÍ <function>ftp_nb_put</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.3.0</entry> + <entry> + Ôö¼Ó <parameter>startpos</parameter> ²ÎÊý¡£ + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ftp_pasv</function></member> + <member><function>ftp_fput</function></member> + <member><function>ftp_nb_fput</function></member> + <member><function>ftp_nb_put</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-zh/reference/ftp/functions/ftp-pwd.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-zh/reference/ftp/functions/ftp-pwd.xml diff -u phpdoc-zh/reference/ftp/functions/ftp-pwd.xml:1.2 phpdoc-zh/reference/ftp/functions/ftp-pwd.xml:1.3 --- phpdoc-zh/reference/ftp/functions/ftp-pwd.xml:1.2 Sat Jun 23 13:32:46 2007 +++ phpdoc-zh/reference/ftp/functions/ftp-pwd.xml Mon Apr 21 08:29:44 2008 @@ -1,25 +1,81 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> -<!-- splitted from ./en/functions/ft.xml, last change in rev 1.2 --> -<!-- $Author: bjori $ --> -<!-- EN-Revision: 1.3 Maintainer: Avenger Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.6 Maintainer: Avenger Status: ready --> <refentry xml:id="function.ftp-pwd" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ftp_pwd</refname> <refpurpose>·µ»Øµ±Ç°Ä¿Â¼Ãû</refpurpose> </refnamediv> - <refsect1> - <title>ÃèÊö</title> - <methodsynopsis> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> <type>string</type><methodname>ftp_pwd</methodname> <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> </methodsynopsis> <para> + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>ftp_stream</parameter></term> + <listitem> + <para> + FTP Á¬½Ó×ÊÔ´¡£ + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> ·µ»Øµ±Ç°Ä¿Â¼Ãû³Æ£¬·¢Éú´íÎóÔò·µ»Ø &false;¡£ - </para> + </para> </refsect1> - </refentry> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ftp_pwd</function> Àý×Ó</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); + +// change directory to public_html +ftp_chdir($conn_id, 'public_html'); + +// print current directory +echo ftp_pwd($conn_id); // /public_html +// close the connection +ftp_close($conn_id); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ftp_chdir</function></member> + <member><function>ftp_cdup</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc-zh/reference/ftp/functions/ftp-quit.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-zh/reference/ftp/functions/ftp-quit.xml diff -u phpdoc-zh/reference/ftp/functions/ftp-quit.xml:1.3 phpdoc-zh/reference/ftp/functions/ftp-quit.xml:1.4 --- phpdoc-zh/reference/ftp/functions/ftp-quit.xml:1.3 Sat Jun 23 13:32:46 2007 +++ phpdoc-zh/reference/ftp/functions/ftp-quit.xml Mon Apr 21 08:29:44 2008 @@ -1,17 +1,18 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.3 $ --> -<!-- $Author: bjori $ --> -<!-- EN-Revision: 1.3 Maintainer: Avenger Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: Avenger Status: ready --> <refentry xml:id="function.ftp-quit" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ftp_quit</refname> - <refpurpose><function>ftp_close</function> µÄ±ðÃû</refpurpose> + <refpurpose><function>ftp_close</function> µÄ &Alias;</refpurpose> </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <para> - ±¾º¯ÊýÊÇ <function>ftp_close</function> µÄ±ðÃû¡£ - </para> + + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; + <function>ftp_close</function> + </simpara> </refsect1> </refentry>
« previous php.doc.zh (#2991) next »