cvs: phpdoc-zh /reference/ftp/functions ftp-nb-continue.xml ftp-nb-fget.xml ftp-nb-fput.xml ftp-nb-put.xml ftp-rename.xml ftp-rmdir.xml ftp-size.xml
ftp-systype.xml

From: Date: Tue, 19 Nov 2002 01:25:22 +0000
Subject: cvs: phpdoc-zh /reference/ftp/functions ftp-nb-continue.xml ftp-nb-fget.xml ftp-nb-fput.xml ftp-nb-put.xml ftp-rename.xml ftp-rmdir.xml ftp-size.xml
ftp-systype.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-886@lists.php.net to get a copy of this message
avenger Mon Nov 18 20:25:22 2002 EDT Added files: /phpdoc-zh/reference/ftp/functions ftp-nb-continue.xml ftp-nb-fget.xml ftp-nb-fput.xml ftp-nb-put.xml ftp-rename.xml ftp-rmdir.xml ftp-size.xml ftp-systype.xml Log: finished

Index: phpdoc-zh/reference/ftp/functions/ftp-nb-continue.xml +++ phpdoc-zh/reference/ftp/functions/ftp-nb-continue.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: avenger $ --> <!-- EN-Revision: 1.2 Maintainer: Avenger Status: ready --> <refentry id="function.ftp-nb-continue"> <refnamediv> <refname>ftp_nb_continue</refname> <refpurpose>Continues retrieving/sending a file (non-blocking)</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>bool</type><methodname>ftp_nb_continue</methodname> <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> </methodsynopsis> <para> Continues retrieving/sending a file nbronously </para> <para> ·µ»Ø³£Á¿ <constant>FTP_FAILED</constant> »ò <constant>FTP_FINISHED</constant> »ò <constant>FTP_MOREDATA</constant>¡£ </para> </refsect1> </refentry> <!-- 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/ftp-nb-fget.xml +++ phpdoc-zh/reference/ftp/functions/ftp-nb-fget.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- $Author: avenger $ --> <!-- EN-Revision: 1.2 Maintainer: Avenger Status: ready --> <refentry id="function.ftp-nb-fget"> <refnamediv> <refname>ftp_nb_fget</refname> <refpurpose>Retrieves a file from the FTP server and writes it to an open file (non-blocking)</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>ftp_nb_fget</methodname> <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> <methodparam><type>resource</type><parameter>fp</parameter></methodparam> <methodparam><type>string</type><parameter>remote_file</parameter></methodparam> <methodparam><type>int</type><parameter>mode</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>resumepos</parameter></methodparam> </methodsynopsis> <para> <function>ftp_nb_fget</function> retrieves <parameter>remote_file</parameter> 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>. The difference between this function and the <function>ftp_fget</function> is that this function retrieves the file asynchronously, so your program can perform other operations while the file is being downloaded. </para> <para> Returns &true; on success or &false; on error. </para> <para> See also <function>ftp_nb_get</function>. </para> </refsect1> </refentry> <!-- 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/ftp-nb-fput.xml +++ phpdoc-zh/reference/ftp/functions/ftp-nb-fput.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.ftp-nb-fput"> <refnamediv> <refname>ftp_nb_fput</refname> <refpurpose>Stores a file from an open file to the FTP server (non-blocking)</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</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>fp</parameter></methodparam> <methodparam><type>int</type><parameter>mode</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>startpos</parameter></methodparam> </methodsynopsis> <para> <function>ftp_nb_fput</function> uploads the data from the file pointer <parameter>fp</parameter> until it reaches the end of the file. The results are stored in <parameter>remote_file</parameter> on the FTP server. The transfer <parameter>mode</parameter> specified must be either <constant>FTP_ASCII</constant> or <constant>FTP_BINARY</constant>. The difference between this function and the <function>ftp_fput</function> is that this function uploads the file asynchronously, so your program can perform other operations while the file is being downloaded. </para> <para> Returns &true; on success or &false; on error. </para> <para> See also <function>ftp_nb_put</function>, <function>ftp_nb_continue</function>, <function>ftp_put</function> and <function>ftp_fput</function>. </para> </refsect1> </refentry> <!-- 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/ftp-nb-put.xml +++ phpdoc-zh/reference/ftp/functions/ftp-nb-put.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- $Author: avenger $ --> <!-- EN-Revision: 1.2 Maintainer: Avenger Status: ready --> <refentry id="function.ftp-nb-put"> <refnamediv> <refname>ftp_nb_put</refname> <refpurpose>´æ´¢Ò»¸öÎļþÖÁ FTP ·þÎñÆ÷ (non-blocking)</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>bool</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> <methodparam><type>int</type><parameter>mode</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>startpos</parameter></methodparam> </methodsynopsis> <para> <function>ftp_nb_put</function> º¯ÊýÓÃÀ´°Ñ±¾µØÎļþ <parameter>local_file</parameter> ´æ´¢µ½ FTP ·þÎñÆ÷ÉÏÓÉ <parameter>remote_file</parameter> ²ÎÊýÖ¸¶¨µÄ·¾¶¡£´«Êäģʽ²ÎÊý <parameter>mode</parameter> Ö»ÄÜΪ <constant>FTP_ASCII</constant> (Îı¾Ä£Ê½) »ò <constant>FTP_BINARY</constant> (¶þ½øÖÆÄ£Ê½) Á½ÖÖ¡£Ó뺯Êý <function>ftp_put</function> ²»Í¬µÄÊÇ£¬´Ëº¯ÊýÉÏ´«ÎļþµÄʱºò²ÉÓõÄÊÇÒì²½´«Êäģʽ£¬Ò²¾ÍÒâζ×ÅÔÚÎļþ´«Ë͵Ĺý³ÌÖУ¬ÄãµÄ³ÌÐò¿ÉÒÔ¼ÌÐø¸ÉÆäËüµÄÊÂÇé¡£ </para> <para> ÉÏ´«³É¹¦·µ»Ø &true;£¬·ñÔò·µ»Ø &false;¡£ </para> <para> <example> <title><function>ftp_nb_put</function> ʵÀý</title> <programlisting role="php"> <![CDATA[ // ¿ªÊ¼ÉÏ´« $ret = ftp_nb_put($my_connection, "test.remote", "test.local", FTP_BINARY); while ($ret == FTP_MOREDATA) { // ÔÚÕâÀï¿ÉÒÔ¼ÓÈëÆäËü´úÂë echo "."; // ¼ÌÐø´«ËÍ... $ret = ftp_nb_continue ($my_connection); } if ($ret != FTP_FINISHED) { echo "ÉÏ´«ÎļþÖз¢Éú´íÎó..."; exit(1); } ]]> </programlisting> </example> <example> <title>ʹÓà <function>ftp_nb_put</function> À´»Ö¸´ÉÏ´«Îļþ</title> <programlisting role="php"> <![CDATA[ // ¿ªÊ¼ $ret = ftp_nb_put ($my_connection, "test.remote", "test.local", FTP_BINARY, ftp_size("test.remote")); // »ò: $ret = ftp_nb_put ($my_connection, "test.remote", "test.local", // FTP_BINARY, FTP_AUTORESUME); while ($ret == FTP_MOREDATA) { // ¼ÓÈëÆäËüÒªÖ´ÐеĴúÂë echo "."; // ¼ÌÐø´«ËÍ... $ret = ftp_nb_continue ($my_connection); } if ($ret != FTP_FINISHED) { echo "ÉÏ´«ÎļþÖз¢Éú´íÎó..."; exit(1); } ]]> </programlisting> </example> </para> <para> ²Î¿¼º¯Êý <function>ftp_nb_fput</function>, <function>ftp_nb_continue</function>, <function>ftp_put</function> and <function>ftp_fput</function>. </para> </refsect1> </refentry> <!-- 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/ftp-rename.xml +++ phpdoc-zh/reference/ftp/functions/ftp-rename.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.2 --> <!-- $Author: avenger $ --> <!-- EN-Revision: 1.3 Maintainer: Avenger Status: ready --> <refentry id="function.ftp-rename"> <refnamediv> <refname>ftp_rename</refname> <refpurpose>¸ü¸Ä FTP ·þÎñÆ÷ÉÏÖ¸¶¨µÄÎļþÃû</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>bool</type><methodname>ftp_rename</methodname> <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> <methodparam><type>string</type><parameter>from</parameter></methodparam> <methodparam><type>string</type><parameter>to</parameter></methodparam> </methodsynopsis> <para> <function>ftp_rename</function> ÓÃÀ´°Ñ²ÎÊý <parameter>from</parameter> Ö¸¶¨µÄÎļþ»òĿ¼¸üÃûΪ <parameter>to</parameter> ²ÎÊý£¬Ê¹ÓõÄÁ¬½Ó¾ä±úΪ²ÎÊý <parameter>ftp_stream</parameter>¡£ </para> <para> ¸ÄÃû³É¹¦·µ»Ø &true; ·ñÔò·µ»Ø &false;¡£ </para> </refsect1> </refentry> <!-- 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/ftp-rmdir.xml +++ phpdoc-zh/reference/ftp/functions/ftp-rmdir.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.2 --> <!-- $Author: avenger $ --> <!-- EN-Revision: 1.3 Maintainer: Avenger Status: ready --> <refentry id="function.ftp-rmdir"> <refnamediv> <refname>ftp_rmdir</refname> <refpurpose>ɾ³ýÒ»¸öĿ¼</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>bool</type><methodname>ftp_rmdir</methodname> <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> <methodparam><type>string</type><parameter>directory</parameter></methodparam> </methodsynopsis> <para> ɾ³ýÓɲÎÊý <parameter>directory</parameter> Ö¸¶¨µÄĿ¼¡£ </para> <para> ɾ³ý³É¹¦·µ»Ø &true;£¬·ñÔò·µ»Ø &false;¡£</para> </refsect1> </refentry> <!-- 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/ftp-size.xml +++ phpdoc-zh/reference/ftp/functions/ftp-size.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.2 --> <!-- $Author: avenger $ --> <!-- EN-Revision: 1.2 Maintainer: Avenger Status: ready --> <refentry id="function.ftp-size"> <refnamediv> <refname>ftp_size</refname> <refpurpose>·µ»ØÖ¸¶¨ÎļþµÄ´óС</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <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> </methodsynopsis> <para> <function>ftp_size</function> º¯Êý·µ»ØÖ¸¶¨ÎļþµÄ´óС£¬µ¥Î»Îª×Ö½Ú¡£Èç¹ûÎļþ²»´æÔÚ»ò·¢Éú´íÎó£¬Ôò·µ»Ø -1¡£´Ëº¯ÊýÓÐЩ·þÎñÆ÷¿ÉÄܻ᲻֧³Ö¡£ </para> <para> »ñÈ¡³É¹¦·µ»ØÎļþ´óС£¬·ñÔò·µ»Ø -1¡£ </para> </refsect1> </refentry> <!-- 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/ftp-systype.xml +++ phpdoc-zh/reference/ftp/functions/ftp-systype.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.2 --> <!-- $Author: avenger $ --> <!-- EN-Revision: 1.2 Maintainer: Avenger Status: ready --> <refentry id="function.ftp-systype"> <refnamediv> <refname>ftp_systype</refname> <refpurpose>·µ»ØÔ¶³Ì FTP ·þÎñÆ÷µÄϵͳÀàÐÍ</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>string</type><methodname>ftp_systype</methodname> <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> </methodsynopsis> <para> ·µ»ØÔ¶³Ì·þÎñÆ÷µÄϵͳÀàÐÍ£¬·¢Éú´íÎóÔò·µ»Ø &false;¡£ </para> </refsect1> </refentry> <!-- 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 -->
« previous php.doc.zh (#886) next »