cvs: phpdoc-zh /reference/ftp/functions ftp-rawlist.xml

From: Date: Mon, 21 Apr 2008 08:05:26 +0000
Subject: cvs: phpdoc-zh /reference/ftp/functions ftp-rawlist.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2990@lists.php.net to get a copy of this message
avenger Mon Apr 21 08:05:26 2008 UTC Modified files: /phpdoc-zh/reference/ftp/functions ftp-rawlist.xml Log: up to date http://cvs.php.net/viewvc.cgi/phpdoc-zh/reference/ftp/functions/ftp-rawlist.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-zh/reference/ftp/functions/ftp-rawlist.xml diff -u phpdoc-zh/reference/ftp/functions/ftp-rawlist.xml:1.3 phpdoc-zh/reference/ftp/functions/ftp-rawlist.xml:1.4 --- phpdoc-zh/reference/ftp/functions/ftp-rawlist.xml:1.3 Sat Jun 23 13:32:46 2007 +++ phpdoc-zh/reference/ftp/functions/ftp-rawlist.xml Mon Apr 21 08:05:26 2008 @@ -1,28 +1,135 @@ <?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.10 Maintainer: Avenger Status: ready --> <refentry xml:id="function.ftp-rawlist" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ftp_rawlist</refname> <refpurpose>·µ»ØÖ¸¶¨Ä¿Â¼ÏÂÎļþµÄÏêϸÁбí</refpurpose> </refnamediv> - <refsect1> - <title>˵Ã÷</title> + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>ftp_rawlist</methodname> <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> <methodparam><type>string</type><parameter>directory</parameter></methodparam> </methodsynopsis> <para> - <function>ftp_rawlist</function> º¯Êý½«Ö´ÐÐ FTP LIST ÃüÁ²¢°Ñ½á¹û·µ»ØÎªÒ»¸öÊý×é¡£Êý×éµÄÿ¸öÔªËØÎª·µ»ØÎı¾µÄÿһÐУ¬Êä³ö½á¹¹²»»á±»½âÎö¡£Ê¹Óú¯Êý - <function>ftp_systype</function> ¿ÉÒÔÓÃÀ´ÅÐ¶Ï FTP ·þÎñÆ÷µÄÀàÐÍ£¬´Ó¶ø¿ÉÒÔÓÃÀ´ÅжϷµ»ØÁбíµÄÀàÐÍ¡£ - </para> - <para> - ²Î¼û <function>ftp_nlist</function>¡£ + <function>ftp_rawlist</function> º¯Êý½«Ö´ÐÐ FTP + <command>LIST</command> ÃüÁ²¢°Ñ½á¹û×öΪһ¸öÊý×é·µ»Ø¡£ </para> </refsect1> - </refentry> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>ftp_stream</parameter></term> + <listitem> + <para> + FTP Á¬½Ó×ÊÔ´¡£ + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>directory</parameter></term> + <listitem> + <para> + Ŀ¼·¾¶¡£ + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>recursive</parameter></term> + <listitem> + <para> + Èç¹û´Ë²ÎÊýΪ &true;£¬Êµ¼ÊÖ´ÐеÄÃüÁ»áΪ <command>LIST -R</command>¡£ + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + ·µ»ØÒ»¸öÊý×飬Êý×éµÄÿ¸öÔªËØÎª·µ»ØÎı¾µÄÿһÐУ¬Êä³ö½á¹¹²»»á±»½âÎö¡£Ê¹Óú¯Êý + <function>ftp_systype</function> ¿ÉÒÔÓÃÀ´ÅÐ¶Ï FTP ·þÎñÆ÷µÄÀàÐÍ£¬´Ó¶ø¿ÉÒÔÓÃÀ´ÅжϷµ»ØÁбíµÄÀàÐÍ¡£ + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ftp_rawlist</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); + +// get the file list for / +$buff = ftp_rawlist($conn_id, '/'); + +// close the connection +ftp_close($conn_id); + +// output the buffer +var_dump($buff); +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +array(3) { + [0]=> + string(65) "drwxr-x--- 3 vincent vincent 4096 Jul 12 12:16 public_ftp" + [1]=> + string(66) "drwxr-x--- 15 vincent vincent 4096 Nov 3 21:31 public_html" + [2]=> + string(73) "lrwxrwxrwx 1 vincent vincent 11 Jul 12 12:16 www -> public_html" +} +]]> + </screen> + </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>recursive</parameter> ²ÎÊý¡£ + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ftp_nlist</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:

« previous php.doc.zh (#2990) next »