cvs: phpdoc-zh /reference/filesystem/functions is-dir.xml

From: Date: Sun, 14 Aug 2005 14:58:40 +0000
Subject: cvs: phpdoc-zh /reference/filesystem/functions is-dir.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2264@lists.php.net to get a copy of this message
lm92 Sun Aug 14 10:58:40 2005 EDT Modified files: /phpdoc-zh/reference/filesystem/functions is-dir.xml Log: updated to en version http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/is-dir.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-zh/reference/filesystem/functions/is-dir.xml diff -u phpdoc-zh/reference/filesystem/functions/is-dir.xml:1.3 phpdoc-zh/reference/filesystem/functions/is-dir.xml:1.4 --- phpdoc-zh/reference/filesystem/functions/is-dir.xml:1.3 Wed Apr 23 19:58:53 2003 +++ phpdoc-zh/reference/filesystem/functions/is-dir.xml Sun Aug 14 10:58:40 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.3 $ --> -<!-- $Author: dallas $ --> -<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- $Author: lm92 $ --> +<!-- EN-Revision: 1.10 Maintainer: dallas Status: ready --> <refentry id="function.is-dir"> <refnamediv> <refname>is_dir</refname> @@ -17,11 +17,31 @@ Èç¹ûÎļþÃû´æÔÚ²¢ÇÒΪĿ¼Ôò·µ»Ø &true;¡£Èç¹û <parameter>filename</parameter> ÊÇÒ»¸öÏà¶Ô·¾¶£¬Ôò°´ÕÕµ±Ç°¹¤×÷Ŀ¼¼ì²éÆäÏà¶Ô·¾¶¡£ </para> - &note.clearstatcache; - - &note.no-remote; - + <para> + <example> + <title><function>is_dir</function> Àý×Ó</title> + <programlisting role="php"> +<![CDATA[ +<? +var_dump(is_dir('a_file.txt')) . "\n"; +var_dump(is_dir('bogus_dir/abc')) . "\n"; + +var_dump(is_dir('..')); //one dir up +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +bool(false) +bool(false) +bool(true) +]]> + </screen> + </example> + </para> + &tip.fopen-wrapper.stat; <para> ²Î¼û <function>chdir</function>£¬<link linkend="class.dir">dir</link>£¬<function>opendir</function>£¬<function>is_file</function>

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