cvs: phpdoc-zh /reference/dir/functions chroot.xml class.dir.xml opendir.xml readdir.xml

From: Date: Mon, 18 Aug 2003 20:17:48 +0000
Subject: cvs: phpdoc-zh /reference/dir/functions chroot.xml class.dir.xml opendir.xml readdir.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1636@lists.php.net to get a copy of this message
dallas Mon Aug 18 16:17:48 2003 EDT Modified files: /phpdoc-zh/reference/dir/functions chroot.xml class.dir.xml opendir.xml readdir.xml Log: Updated. Index: phpdoc-zh/reference/dir/functions/chroot.xml diff -u phpdoc-zh/reference/dir/functions/chroot.xml:1.5 phpdoc-zh/reference/dir/functions/chroot.xml:1.6 --- phpdoc-zh/reference/dir/functions/chroot.xml:1.5 Sat Feb 22 07:31:42 2003 +++ phpdoc-zh/reference/dir/functions/chroot.xml Mon Aug 18 16:17:48 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> <refentry id="function.chroot"> <refnamediv> <refname>chroot</refname> @@ -17,12 +17,10 @@ ½«µ±Ç°½ø³ÌµÄ¸ùĿ¼¸Ä±äΪ <parameter>directory</parameter>¡£&return.success; </para> - <note> - <para> - µ±ÔËÐÐÓÚ web ·þÎñÆ÷»·¾³ÏÂʹÓô˺¯Êý¿É²»Ã÷ÖÇ£¬ÒòΪÔÚÇëÇó½áÊøÊ±²»¿ÉÄܽ«¸ùÄ¿Â¼ÖØÉèΪ - /¡£±¾º¯Êý½öÔÚÃüÁîÐÐ (CLI) ÏÂÔËÐÐ PHP ʱ²ÅÄÜÕýÈ·¹¤×÷¡£ - </para> - </note> + <para> + ±¾º¯Êý½öÔÚÄãµÄϵͳ֧³ÖÇÒÔËÐÐÓÚ CLI£¬CGI + »òǶÈë SAPI °æ±¾Ê±²ÅÄÜÕýÈ·¹¤×÷¡£ + </para> &note.no-windows; </refsect1> </refentry> Index: phpdoc-zh/reference/dir/functions/class.dir.xml diff -u phpdoc-zh/reference/dir/functions/class.dir.xml:1.3 phpdoc-zh/reference/dir/functions/class.dir.xml:1.4 --- phpdoc-zh/reference/dir/functions/class.dir.xml:1.3 Sun Sep 29 23:08:49 2002 +++ phpdoc-zh/reference/dir/functions/class.dir.xml Mon Aug 18 16:17:48 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <refentry id="class.dir"> <refnamediv> <refname>dir</refname> @@ -42,6 +42,7 @@ <title><function>dir</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ +<?php $d = dir("/etc"); echo "Handle: ".$d->handle."<br>\n"; echo "Path: ".$d->path."<br>\n"; @@ -49,6 +50,7 @@ echo $entry."<br>\n"; } $d->close(); +?> ]]> </programlisting> </example> Index: phpdoc-zh/reference/dir/functions/opendir.xml diff -u phpdoc-zh/reference/dir/functions/opendir.xml:1.4 phpdoc-zh/reference/dir/functions/opendir.xml:1.5 --- phpdoc-zh/reference/dir/functions/opendir.xml:1.4 Thu May 1 00:54:40 2003 +++ phpdoc-zh/reference/dir/functions/opendir.xml Mon Aug 18 16:17:48 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> <refentry id="function.opendir"> <refnamediv> <refname>opendir</refname> @@ -13,7 +13,7 @@ <type>resource</type><methodname>opendir</methodname> <methodparam><type>string</type><parameter>path</parameter></methodparam> </methodsynopsis> - <para> + <para> ·µ»ØÒ»¸öĿ¼¾ä±ú£¬¿ÉÒÔÔÚÖ®ºóÓÃÔÚ <function>closedir</function>£¬<function>readdir</function> ºÍ <function>rewinddir</function> µ÷ÓÃÖС£ @@ -38,7 +38,7 @@ while (($file = readdir($dh)) !== false) { print "filename: $file : filetype: " . filetype($dir . $file) . "\n"; } - closedir($dh); + closedir($dh); } } ?> @@ -47,9 +47,9 @@ </example> </para> <para> - ×Ô <literal>PHP 4.3</literal> Æð <parameter>path</parameter> + ×Ô <literal>PHP 4.3.0</literal> Æð <parameter>path</parameter> Ò²¿ÉÒÔÊÇÈκÎÖ§³ÖĿ¼ÁбíµÄ URL£¬µ«ÊÇÔÚ <literal>PHP 4.3</literal> - ÖÐÖ»Ö§³Ö <literal>file://</literal> url ЭÒé¡£×Ô <literal>PHP 5.0</literal> + ÖÐÖ»Ö§³Ö <literal>file://</literal> url ЭÒé¡£×Ô <literal>PHP 5.0.0</literal> Æð£¬Ò²°üÀ¨ÁË <literal>ftp://</literal> url ЭÒéµÄÖ§³Ö¡£ </para> <para> Index: phpdoc-zh/reference/dir/functions/readdir.xml diff -u phpdoc-zh/reference/dir/functions/readdir.xml:1.3 phpdoc-zh/reference/dir/functions/readdir.xml:1.4 --- phpdoc-zh/reference/dir/functions/readdir.xml:1.3 Fri Mar 21 02:01:44 2003 +++ phpdoc-zh/reference/dir/functions/readdir.xml Mon Aug 18 16:17:48 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.3 $ --> -<!-- $Author: gregory $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> <refentry id="function.readdir"> <refnamediv> <refname>readdir</refname> @@ -27,23 +27,23 @@ <title>ÁгöĿ¼ÖеÄËùÓÐÎļþ</title> <programlisting role="php"> <![CDATA[ -// ×¢ÒâÔÚ 4.0.0-RC2 ֮ǰ²»´æÔÚ !== ÔËËã·û <?php +// ×¢ÒâÔÚ 4.0.0-RC2 ֮ǰ²»´æÔÚ !== ÔËËã·û if ($handle = opendir('/path/to/files')) { echo "Directory handle: $handle\n"; echo "Files:\n"; - /* ÕâÊDZéÀúĿ¼ÕýÈ·µÄ·½·¨ */ - while (false !== ($file = readdir($handle))) { + /* ÕâÊÇÕýÈ·µØ±éÀúĿ¼·½·¨ */ + while (false !== ($file = readdir($handle))) { echo "$file\n"; } /* ÕâÊÇ´íÎ󵨱éÀúĿ¼µÄ·½·¨ */ - while ($file = readdir($handle)) { + while ($file = readdir($handle)) { echo "$file\n"; } - closedir($handle); + closedir($handle); } ?> ]]> @@ -60,21 +60,23 @@ </title> <programlisting role="php"> <![CDATA[ -<?php +<?php if ($handle = opendir('.')) { - while (false !== ($file = readdir($handle))) { - if ($file != "." && $file != "..") { - echo "$file\n"; - } + while (false !== ($file = readdir($handle))) { + if ($file != "." && $file != "..") { + echo "$file\n"; + } } - closedir($handle); + closedir($handle); } ?> ]]> </programlisting> </example> </para> - <para>²Î¼û <function>is_dir</function> ºÍ <function>glob</function>¡£</para> + <para> + ²Î¼û <function>is_dir</function> ºÍ <function>glob</function>¡£ + </para> </refsect1> </refentry>

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