cvs: phpdoc-zh /reference/filesystem/functions glob.xml
| From: | liuming | Date: | Sun, 14 Aug 2005 15:11:19 +0000 |
| Subject: | cvs: phpdoc-zh /reference/filesystem/functions glob.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-2265@lists.php.net to get a copy of this message | ||
lm92 Sun Aug 14 11:11:19 2005 EDT
Modified files:
/phpdoc-zh/reference/filesystem/functions glob.xml
Log:
updated to en version
http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/glob.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc-zh/reference/filesystem/functions/glob.xml
diff -u phpdoc-zh/reference/filesystem/functions/glob.xml:1.4
phpdoc-zh/reference/filesystem/functions/glob.xml:1.5
--- phpdoc-zh/reference/filesystem/functions/glob.xml:1.4 Mon Aug 18 19:23:46 2003
+++ phpdoc-zh/reference/filesystem/functions/glob.xml Sun Aug 14 11:11:18 2005
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.4 $ -->
-<!-- $Author: dallas $ -->
-<!-- EN-Revision: 1.12 Maintainer: dallas Status: ready -->
+<!-- $Revision: 1.5 $ -->
+<!-- $Author: lm92 $ -->
+<!-- EN-Revision: 1.19 Maintainer: dallas Status: ready -->
<refentry id="function.glob">
<refnamediv>
<refname>glob</refname>
@@ -15,8 +15,9 @@
<methodparam
choice="opt"><type>int</type><parameter>flags</parameter></methodparam>
</methodsynopsis>
<para>
- <function>glob</function> º¯ÊýÒÀÕÕ shell
ʹÓõĹæÔòѰÕÒËùÓÐÓë
- <parameter>pattern</parameter>
Æ¥ÅäµÄÎļþ·¾¶¡£²»½øÐÐËõдÀ©Õ¹»ò²ÎÊýÌæ´ú¡£
+ <function>glob</function> º¯ÊýÒÀÕÕ libc glob()
º¯ÊýʹÓõĹæÔòѰÕÒËùÓÐÓë
+ <parameter>pattern</parameter>
Æ¥ÅäµÄÎļþ·¾¶£¬ÀàËÆÓÚÒ»°ã shells
+ ËùÓõĹæÔòÒ»Ñù¡£²»½øÐÐËõдÀ©Õ¹»ò²ÎÊýÌæ´ú¡£
</para>
<para>
·µ»ØÒ»¸ö°üº¬ÓÐÆ¥ÅäÎļþ/Ŀ¼µÄÊý×é¡£Èç¹û³ö´í·µ»Ø
&false;¡£
@@ -53,15 +54,26 @@
<simpara>
<constant>GLOB_ONLYDIR</constant> -
½ö·µ»ØÓëģʽƥÅäµÄĿ¼Ïî
</simpara>
+ <note>
+ <simpara>
+ ÔÚ PHP 4.3.3 °æ±¾Ö®Ç° <constant>GLOB_ONLYDIR</constant>
+ ÔÚ Windows »òÕ߯äËü²»Ê¹Óà GNU C ¿âµÄϵͳÉÏÊÇ
+ <emphasis role="strong">²»¿ÉÓÃ</emphasis> µÄ¡£
+ </simpara>
+ </note>
+ </listitem>
+ <listitem>
+ <simpara>
+ <constant>GLOB_ERR</constant> -
Í£Ö¹²¢¶ÁÈ¡´íÎóÐÅÏ¢£¨±ÈÈç˵²»¿É¶ÁµÄĿ¼£©£¬Ä¬ÈϵÄÇé¿öϺöÂÔËùÓдíÎó
+ </simpara>
+ <note>
+ <simpara>
+ <constant>GLOB_ERR</constant> ÊÇÔÚ PHP 5.1 ÖÐÌí¼ÓµÄ
+ </simpara>
+ </note>
</listitem>
</itemizedlist>
</para>
- <note>
- <simpara>
- ÔÚ PHP 4.3.3 ֮ǰ£¬<constant>GLOB_ONLYDIR</constant>
- <emphasis role="strong">²»¿É</emphasis>ÓÃÓÚ Windows
ÏÂÒÔ¼°ÆäËü²»Ê¹Óà GNU C ¿âµÄϵͳ¡£
- </simpara>
- </note>
<para>
<example>
<title>
@@ -73,22 +85,22 @@
foreach (glob("*.txt") as $filename) {
echo "$filename size " . filesize($filename) . "\n";
}
-
-/* Êä³öÀàËÆ£º
-
+?>
+]]>
+ </programlisting>
+ <para>
+ Êä³ö½á¹ûÀàËÆ
+ </para>
+ <screen>
+ <![CDATA[
funclist.txt size 44686
funcsummary.txt size 267625
quickref.txt size 137820
-
-*/
-?>
]]>
- </programlisting>
+ </screen>
</example>
</para>
-
¬e.no-remote;
-
<para>
²Î¼û
<function>opendir</function>£¬<function>readdir</function>£¬<function>closedir</function>