cvs: phpdoc-zh /reference/filesystem/functions fscanf.xml ftruncate.xml is-dir.xml is-executable.xml is-file.xml
| From: | Dallas Thunder | Date: | Tue, 13 Sep 2005 17:00:32 +0000 |
| Subject: | cvs: phpdoc-zh /reference/filesystem/functions fscanf.xml ftruncate.xml is-dir.xml is-executable.xml is-file.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-2661@lists.php.net to get a copy of this message | ||
dallas Tue Sep 13 13:00:32 2005 EDT
Modified files:
/phpdoc-zh/reference/filesystem/functions fscanf.xml ftruncate.xml
is-dir.xml
is-executable.xml
is-file.xml
Log:
WS fix.
http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/fscanf.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-zh/reference/filesystem/functions/fscanf.xml diff -u phpdoc-zh/reference/filesystem/functions/fscanf.xml:1.6 phpdoc-zh/reference/filesystem/functions/fscanf.xml:1.7 --- phpdoc-zh/reference/filesystem/functions/fscanf.xml:1.6 Mon Aug 15 23:17:10 2005 +++ phpdoc-zh/reference/filesystem/functions/fscanf.xml Tue Sep 13 13:00:32 2005 @@ -1,35 +1,35 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.6 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.7 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.16 Maintainer: dallas Status: ready --> - <refentry id="function.fscanf"> - <refnamediv> - <refname>fscanf</refname> - <refpurpose>´ÓÎļþÖиñʽ»¯ÊäÈë</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>mixed</type><methodname>fscanf</methodname> - <methodparam><type>resource</type><parameter>handle</parameter></methodparam> - <methodparam><type>string</type><parameter>format</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter role="reference">...</parameter></methodparam> - </methodsynopsis> - <para> - <function>fscanf</function> º¯ÊýºÍ - <function>sscanf</function> ÏàËÆ£¬µ«ÊÇËü´ÓÓë - <parameter>handle</parameter> ¹ØÁªµÄÎļþÖнÓÊÜÊäÈë²¢¸ù¾ÝÖ¸¶¨µÄ - <parameter>format</parameter>£¨¶¨ÒåÓÚ <function>sprintf</function> - µÄÎĵµÖУ©À´½âÊÍÊäÈë¡£Èç¹ûÖ»¸ø´Ëº¯Êý´«µÝÁËÁ½¸ö²ÎÊý£¬½âÎöºóµÄÖµ»á±»×÷ΪÊý×é·µ»Ø¡£·ñÔò£¬Èç¹ûÌṩÁË¿ÉÑ¡²ÎÊý£¬´Ëº¯Êý½«·µ»Ø±»¸³ÖµµÄÊýÄ¿¡£¿ÉÑ¡²ÎÊý±ØÐëÓÃÒýÓô«µÝ¡£ - </para> - <para> - ¸ñʽ×Ö·û´®ÖеÄÈκοհ׻áÓëÊäÈëÁ÷ÖеÄÈÎºÎ¿Õ°×Æ¥Åä¡£ÕâÒâζ×ÅÉõÖÁ¸ñʽ×Ö·û´®ÖеÄÖÆ±í·û - <literal>\t</literal> Ò²»áÓëÊäÈëÁ÷ÖеÄÒ»¸ö¿Õ¸ñ×Ö·ûÆ¥Åä¡£ - </para> - <para> - <example> - <title><function>fscanf</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.fscanf"> + <refnamediv> + <refname>fscanf</refname> + <refpurpose>´ÓÎļþÖиñʽ»¯ÊäÈë</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>mixed</type><methodname>fscanf</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> + <methodparam><type>string</type><parameter>format</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter role="reference">...</parameter></methodparam> + </methodsynopsis> + <para> + <function>fscanf</function> º¯ÊýºÍ + <function>sscanf</function> ÏàËÆ£¬µ«ÊÇËü´ÓÓë + <parameter>handle</parameter> ¹ØÁªµÄÎļþÖнÓÊÜÊäÈë²¢¸ù¾ÝÖ¸¶¨µÄ + <parameter>format</parameter>£¨¶¨ÒåÓÚ <function>sprintf</function> + µÄÎĵµÖУ©À´½âÊÍÊäÈë¡£Èç¹ûÖ»¸ø´Ëº¯Êý´«µÝÁËÁ½¸ö²ÎÊý£¬½âÎöºóµÄÖµ»á±»×÷ΪÊý×é·µ»Ø¡£·ñÔò£¬Èç¹ûÌṩÁË¿ÉÑ¡²ÎÊý£¬´Ëº¯Êý½«·µ»Ø±»¸³ÖµµÄÊýÄ¿¡£¿ÉÑ¡²ÎÊý±ØÐëÓÃÒýÓô«µÝ¡£ + </para> + <para> + ¸ñʽ×Ö·û´®ÖеÄÈκοհ׻áÓëÊäÈëÁ÷ÖеÄÈÎºÎ¿Õ°×Æ¥Åä¡£ÕâÒâζ×ÅÉõÖÁ¸ñʽ×Ö·û´®ÖеÄÖÆ±í·û + <literal>\t</literal> Ò²»áÓëÊäÈëÁ÷ÖеÄÒ»¸ö¿Õ¸ñ×Ö·ûÆ¥Åä¡£ + </para> + <para> + <example> + <title><function>fscanf</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $handle = fopen("users.txt","r"); @@ -40,34 +40,34 @@ fclose($handle); ?> ]]> - </programlisting> - </example> - <example> - <title>users.txt µÄÄÚÈÝ</title> - <programlisting role="txt"> + </programlisting> + </example> + <example> + <title>users.txt µÄÄÚÈÝ</title> + <programlisting role="txt"> <![CDATA[ javier argonaut pe hiroshi sculptor jp robert slacker us luigi florist it ]]> - </programlisting> - </example> - </para> - <note> - <simpara> - ÔÚ PHP 4.3.0 ֮ǰ£¬´ÓÎļþÖжÁÈëµÄ×î´ó×Ö·ûÊýÊÇ - 512£¨»òÕßµÚÒ»¸ö \n£¬¿´ÏÈÅöµ½ÄÄÖÖÇé¿ö£©¡£´Ó - PHP 4.3.0 Æð¿ÉÒÔ¶ÁÈ¡ÈÎÒⳤµÄÐС£ - </simpara> - </note> - <para> - ²Î¼û - <function>fread</function>£¬<function>fgets</function>£¬<function>fgetss</function>£¬<function>sscanf</function>£¬<function>printf</function> - ºÍ <function>sprintf</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <note> + <simpara> + ÔÚ PHP 4.3.0 ֮ǰ£¬´ÓÎļþÖжÁÈëµÄ×î´ó×Ö·ûÊýÊÇ + 512£¨»òÕßµÚÒ»¸ö \n£¬¿´ÏÈÅöµ½ÄÄÖÖÇé¿ö£©¡£´Ó + PHP 4.3.0 Æð¿ÉÒÔ¶ÁÈ¡ÈÎÒⳤµÄÐС£ + </simpara> + </note> + <para> + ²Î¼û + <function>fread</function>£¬<function>fgets</function>£¬<function>fgetss</function>£¬<function>sscanf</function>£¬<function>printf</function> + ºÍ <function>sprintf</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/ftruncate.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/reference/filesystem/functions/ftruncate.xml diff -u phpdoc-zh/reference/filesystem/functions/ftruncate.xml:1.5 phpdoc-zh/reference/filesystem/functions/ftruncate.xml:1.6 --- phpdoc-zh/reference/filesystem/functions/ftruncate.xml:1.5 Mon Aug 15 22:56:28 2005 +++ phpdoc-zh/reference/filesystem/functions/ftruncate.xml Tue Sep 13 13:00:32 2005 @@ -1,42 +1,42 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> - <refentry id="function.ftruncate"> - <refnamediv> - <refname>ftruncate</refname> - <refpurpose>½«Îļþ½Ø¶Ïµ½¸ø¶¨µÄ³¤¶È</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>ftruncate</methodname> - <methodparam><type>resource</type><parameter>handle</parameter></methodparam> - <methodparam><type>int</type><parameter>size</parameter></methodparam> - </methodsynopsis> - <para> - ½ÓÊÜÎļþÖ¸Õë <parameter>handle</parameter> ×÷Ϊ²ÎÊý£¬²¢½«Îļþ´óС½ØÈ¡Îª - <parameter>size</parameter>¡£&return.success; - </para> - <note> - <para> - ÎļþÖ»»áÔÚ <emphasis>append</emphasis> ģʽϸı䡣ÔÚ - <emphasis>write</emphasis> ģʽÏ£¬±ØÐë¼ÓÉÏ <function>fseek</function> - ²Ù×÷¡£ - </para> - </note> - <note> - <para> - ÔÚ PHP 4.3.3 ֮ǰ£¬<function>ftruncate</function> Ôڳɹ¦Ê±·µ»ØÒ»¸ö - <type>integer</type> Öµ 1£¬¶ø²»ÊÇ <type>boolean</type> µÄ &true;¡£ - </para> - </note> - <para> - ²Î¼û <function>fopen</function> - ºÍ <function>fseek</function>¡£ - </para> - </refsect1> - </refentry> +<refentry id="function.ftruncate"> + <refnamediv> + <refname>ftruncate</refname> + <refpurpose>½«Îļþ½Ø¶Ïµ½¸ø¶¨µÄ³¤¶È</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>ftruncate</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> + <methodparam><type>int</type><parameter>size</parameter></methodparam> + </methodsynopsis> + <para> + ½ÓÊÜÎļþÖ¸Õë <parameter>handle</parameter> ×÷Ϊ²ÎÊý£¬²¢½«Îļþ´óС½ØÈ¡Îª + <parameter>size</parameter>¡£&return.success; + </para> + <note> + <para> + ÎļþÖ»»áÔÚ <emphasis>append</emphasis> ģʽϸı䡣ÔÚ + <emphasis>write</emphasis> ģʽÏ£¬±ØÐë¼ÓÉÏ <function>fseek</function> + ²Ù×÷¡£ + </para> + </note> + <note> + <para> + ÔÚ PHP 4.3.3 ֮ǰ£¬<function>ftruncate</function> Ôڳɹ¦Ê±·µ»ØÒ»¸ö + <type>integer</type> Öµ 1£¬¶ø²»ÊÇ <type>boolean</type> µÄ &true;¡£ + </para> + </note> + <para> + ²Î¼û <function>fopen</function> + ºÍ <function>fseek</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/is-dir.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/filesystem/functions/is-dir.xml diff -u phpdoc-zh/reference/filesystem/functions/is-dir.xml:1.4 phpdoc-zh/reference/filesystem/functions/is-dir.xml:1.5 --- phpdoc-zh/reference/filesystem/functions/is-dir.xml:1.4 Sun Aug 14 10:58:40 2005 +++ phpdoc-zh/reference/filesystem/functions/is-dir.xml Tue Sep 13 13:00:32 2005 @@ -1,54 +1,54 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.10 Maintainer: dallas Status: ready --> - <refentry id="function.is-dir"> - <refnamediv> - <refname>is_dir</refname> - <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñÊÇÒ»¸öĿ¼</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>is_dir</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <para> - Èç¹ûÎļþÃû´æÔÚ²¢ÇÒΪĿ¼Ôò·µ»Ø &true;¡£Èç¹û - <parameter>filename</parameter> ÊÇÒ»¸öÏà¶Ô·¾¶£¬Ôò°´ÕÕµ±Ç°¹¤×÷Ŀ¼¼ì²éÆäÏà¶Ô·¾¶¡£ - </para> - ¬e.clearstatcache; - <para> - <example> - <title><function>is_dir</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.is-dir"> + <refnamediv> + <refname>is_dir</refname> + <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñÊÇÒ»¸öĿ¼</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>is_dir</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹ûÎļþÃû´æÔÚ²¢ÇÒΪĿ¼Ôò·µ»Ø &true;¡£Èç¹û + <parameter>filename</parameter> ÊÇÒ»¸öÏà¶Ô·¾¶£¬Ôò°´ÕÕµ±Ç°¹¤×÷Ŀ¼¼ì²éÆäÏà¶Ô·¾¶¡£ + </para> + ¬e.clearstatcache; + <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> + </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> - ºÍ <function>is_link</function>¡£ - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + &tip.fopen-wrapper.stat; + <para> + ²Î¼û + <function>chdir</function>£¬<link linkend="class.dir">dir</link>£¬<function>opendir</function>£¬<function>is_file</function> + ºÍ <function>is_link</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/is-executable.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/reference/filesystem/functions/is-executable.xml diff -u phpdoc-zh/reference/filesystem/functions/is-executable.xml:1.5 phpdoc-zh/reference/filesystem/functions/is-executable.xml:1.6 --- phpdoc-zh/reference/filesystem/functions/is-executable.xml:1.5 Sun Aug 14 10:55:56 2005 +++ phpdoc-zh/reference/filesystem/functions/is-executable.xml Tue Sep 13 13:00:32 2005 @@ -1,28 +1,28 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.12 Maintainer: dallas Status: ready --> - <refentry id="function.is-executable"> - <refnamediv> - <refname>is_executable</refname> - <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñ¿ÉÖ´ÐÐ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>is_executable</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <para> - Èç¹ûÎļþ´æÔÚÇÒ¿ÉÖ´ÐÐÔò·µ»Ø &true;¡£ - </para> - <para> - <function>is_executable</function> ×Ô PHP 5.0.0 °æÆð¿ÉÓÃÓÚ <productname>Windows</productname>¡£ - </para> - <para> - <example> - <title><function>is_executable</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.is-executable"> + <refnamediv> + <refname>is_executable</refname> + <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñ¿ÉÖ´ÐÐ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>is_executable</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹ûÎļþ´æÔÚÇÒ¿ÉÖ´ÐÐÔò·µ»Ø &true;¡£ + </para> + <para> + <function>is_executable</function> ×Ô PHP 5.0.0 °æÆð¿ÉÓÃÓÚ <productname>Windows</productname>¡£ + </para> + <para> + <example> + <title><function>is_executable</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php @@ -36,17 +36,17 @@ ?> ]]> - </programlisting> - </example> - </para> - ¬e.clearstatcache; - &tip.fopen-wrapper.stat; - <para> - ²Î¼û <function>is_file</function> - ºÍ <function>is_link</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + ¬e.clearstatcache; + &tip.fopen-wrapper.stat; + <para> + ²Î¼û <function>is_file</function> + ºÍ <function>is_link</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/is-file.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/filesystem/functions/is-file.xml diff -u phpdoc-zh/reference/filesystem/functions/is-file.xml:1.4 phpdoc-zh/reference/filesystem/functions/is-file.xml:1.5 --- phpdoc-zh/reference/filesystem/functions/is-file.xml:1.4 Sun Aug 14 10:54:12 2005 +++ phpdoc-zh/reference/filesystem/functions/is-file.xml Tue Sep 13 13:00:32 2005 @@ -1,49 +1,49 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> - <refentry id="function.is-file"> - <refnamediv> - <refname>is_file</refname> - <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñΪһ¸öÕý³£µÄÎļþ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>is_file</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <para> - Èç¹ûÎļþ´æÔÚÇÒΪÕý³£µÄÎļþÔò·µ»Ø &true;¡£ - </para> - <para> - <example> - <title><function>is_file</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.is-file"> + <refnamediv> + <refname>is_file</refname> + <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñΪһ¸öÕý³£µÄÎļþ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>is_file</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹ûÎļþ´æÔÚÇÒΪÕý³£µÄÎļþÔò·µ»Ø &true;¡£ + </para> + <para> + <example> + <title><function>is_file</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php var_dump(is_file('a_file.txt')) . "\n"; var_dump(is_file('/usr/bin/')) . "\n"; ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ bool(true) bool(false) ]]> - </screen> - </example> - </para> - ¬e.clearstatcache; - &tip.fopen-wrapper.stat; - <para> - ²Î¼û <function>is_dir</function> ºÍ - <function>is_link</function>¡£ - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + ¬e.clearstatcache; + &tip.fopen-wrapper.stat; + <para> + ²Î¼û <function>is_dir</function> ºÍ + <function>is_link</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/fscanf.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-zh/reference/filesystem/functions/fscanf.xml diff -u phpdoc-zh/reference/filesystem/functions/fscanf.xml:1.6 phpdoc-zh/reference/filesystem/functions/fscanf.xml:1.7 --- phpdoc-zh/reference/filesystem/functions/fscanf.xml:1.6 Mon Aug 15 23:17:10 2005 +++ phpdoc-zh/reference/filesystem/functions/fscanf.xml Tue Sep 13 13:00:32 2005 @@ -1,35 +1,35 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.6 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.7 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.16 Maintainer: dallas Status: ready --> - <refentry id="function.fscanf"> - <refnamediv> - <refname>fscanf</refname> - <refpurpose>´ÓÎļþÖиñʽ»¯ÊäÈë</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>mixed</type><methodname>fscanf</methodname> - <methodparam><type>resource</type><parameter>handle</parameter></methodparam> - <methodparam><type>string</type><parameter>format</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter role="reference">...</parameter></methodparam> - </methodsynopsis> - <para> - <function>fscanf</function> º¯ÊýºÍ - <function>sscanf</function> ÏàËÆ£¬µ«ÊÇËü´ÓÓë - <parameter>handle</parameter> ¹ØÁªµÄÎļþÖнÓÊÜÊäÈë²¢¸ù¾ÝÖ¸¶¨µÄ - <parameter>format</parameter>£¨¶¨ÒåÓÚ <function>sprintf</function> - µÄÎĵµÖУ©À´½âÊÍÊäÈë¡£Èç¹ûÖ»¸ø´Ëº¯Êý´«µÝÁËÁ½¸ö²ÎÊý£¬½âÎöºóµÄÖµ»á±»×÷ΪÊý×é·µ»Ø¡£·ñÔò£¬Èç¹ûÌṩÁË¿ÉÑ¡²ÎÊý£¬´Ëº¯Êý½«·µ»Ø±»¸³ÖµµÄÊýÄ¿¡£¿ÉÑ¡²ÎÊý±ØÐëÓÃÒýÓô«µÝ¡£ - </para> - <para> - ¸ñʽ×Ö·û´®ÖеÄÈκοհ׻áÓëÊäÈëÁ÷ÖеÄÈÎºÎ¿Õ°×Æ¥Åä¡£ÕâÒâζ×ÅÉõÖÁ¸ñʽ×Ö·û´®ÖеÄÖÆ±í·û - <literal>\t</literal> Ò²»áÓëÊäÈëÁ÷ÖеÄÒ»¸ö¿Õ¸ñ×Ö·ûÆ¥Åä¡£ - </para> - <para> - <example> - <title><function>fscanf</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.fscanf"> + <refnamediv> + <refname>fscanf</refname> + <refpurpose>´ÓÎļþÖиñʽ»¯ÊäÈë</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>mixed</type><methodname>fscanf</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> + <methodparam><type>string</type><parameter>format</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter role="reference">...</parameter></methodparam> + </methodsynopsis> + <para> + <function>fscanf</function> º¯ÊýºÍ + <function>sscanf</function> ÏàËÆ£¬µ«ÊÇËü´ÓÓë + <parameter>handle</parameter> ¹ØÁªµÄÎļþÖнÓÊÜÊäÈë²¢¸ù¾ÝÖ¸¶¨µÄ + <parameter>format</parameter>£¨¶¨ÒåÓÚ <function>sprintf</function> + µÄÎĵµÖУ©À´½âÊÍÊäÈë¡£Èç¹ûÖ»¸ø´Ëº¯Êý´«µÝÁËÁ½¸ö²ÎÊý£¬½âÎöºóµÄÖµ»á±»×÷ΪÊý×é·µ»Ø¡£·ñÔò£¬Èç¹ûÌṩÁË¿ÉÑ¡²ÎÊý£¬´Ëº¯Êý½«·µ»Ø±»¸³ÖµµÄÊýÄ¿¡£¿ÉÑ¡²ÎÊý±ØÐëÓÃÒýÓô«µÝ¡£ + </para> + <para> + ¸ñʽ×Ö·û´®ÖеÄÈκοհ׻áÓëÊäÈëÁ÷ÖеÄÈÎºÎ¿Õ°×Æ¥Åä¡£ÕâÒâζ×ÅÉõÖÁ¸ñʽ×Ö·û´®ÖеÄÖÆ±í·û + <literal>\t</literal> Ò²»áÓëÊäÈëÁ÷ÖеÄÒ»¸ö¿Õ¸ñ×Ö·ûÆ¥Åä¡£ + </para> + <para> + <example> + <title><function>fscanf</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $handle = fopen("users.txt","r"); @@ -40,34 +40,34 @@ fclose($handle); ?> ]]> - </programlisting> - </example> - <example> - <title>users.txt µÄÄÚÈÝ</title> - <programlisting role="txt"> + </programlisting> + </example> + <example> + <title>users.txt µÄÄÚÈÝ</title> + <programlisting role="txt"> <![CDATA[ javier argonaut pe hiroshi sculptor jp robert slacker us luigi florist it ]]> - </programlisting> - </example> - </para> - <note> - <simpara> - ÔÚ PHP 4.3.0 ֮ǰ£¬´ÓÎļþÖжÁÈëµÄ×î´ó×Ö·ûÊýÊÇ - 512£¨»òÕßµÚÒ»¸ö \n£¬¿´ÏÈÅöµ½ÄÄÖÖÇé¿ö£©¡£´Ó - PHP 4.3.0 Æð¿ÉÒÔ¶ÁÈ¡ÈÎÒⳤµÄÐС£ - </simpara> - </note> - <para> - ²Î¼û - <function>fread</function>£¬<function>fgets</function>£¬<function>fgetss</function>£¬<function>sscanf</function>£¬<function>printf</function> - ºÍ <function>sprintf</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <note> + <simpara> + ÔÚ PHP 4.3.0 ֮ǰ£¬´ÓÎļþÖжÁÈëµÄ×î´ó×Ö·ûÊýÊÇ + 512£¨»òÕßµÚÒ»¸ö \n£¬¿´ÏÈÅöµ½ÄÄÖÖÇé¿ö£©¡£´Ó + PHP 4.3.0 Æð¿ÉÒÔ¶ÁÈ¡ÈÎÒⳤµÄÐС£ + </simpara> + </note> + <para> + ²Î¼û + <function>fread</function>£¬<function>fgets</function>£¬<function>fgetss</function>£¬<function>sscanf</function>£¬<function>printf</function> + ºÍ <function>sprintf</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/ftruncate.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/reference/filesystem/functions/ftruncate.xml diff -u phpdoc-zh/reference/filesystem/functions/ftruncate.xml:1.5 phpdoc-zh/reference/filesystem/functions/ftruncate.xml:1.6 --- phpdoc-zh/reference/filesystem/functions/ftruncate.xml:1.5 Mon Aug 15 22:56:28 2005 +++ phpdoc-zh/reference/filesystem/functions/ftruncate.xml Tue Sep 13 13:00:32 2005 @@ -1,42 +1,42 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> - <refentry id="function.ftruncate"> - <refnamediv> - <refname>ftruncate</refname> - <refpurpose>½«Îļþ½Ø¶Ïµ½¸ø¶¨µÄ³¤¶È</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>ftruncate</methodname> - <methodparam><type>resource</type><parameter>handle</parameter></methodparam> - <methodparam><type>int</type><parameter>size</parameter></methodparam> - </methodsynopsis> - <para> - ½ÓÊÜÎļþÖ¸Õë <parameter>handle</parameter> ×÷Ϊ²ÎÊý£¬²¢½«Îļþ´óС½ØÈ¡Îª - <parameter>size</parameter>¡£&return.success; - </para> - <note> - <para> - ÎļþÖ»»áÔÚ <emphasis>append</emphasis> ģʽϸı䡣ÔÚ - <emphasis>write</emphasis> ģʽÏ£¬±ØÐë¼ÓÉÏ <function>fseek</function> - ²Ù×÷¡£ - </para> - </note> - <note> - <para> - ÔÚ PHP 4.3.3 ֮ǰ£¬<function>ftruncate</function> Ôڳɹ¦Ê±·µ»ØÒ»¸ö - <type>integer</type> Öµ 1£¬¶ø²»ÊÇ <type>boolean</type> µÄ &true;¡£ - </para> - </note> - <para> - ²Î¼û <function>fopen</function> - ºÍ <function>fseek</function>¡£ - </para> - </refsect1> - </refentry> +<refentry id="function.ftruncate"> + <refnamediv> + <refname>ftruncate</refname> + <refpurpose>½«Îļþ½Ø¶Ïµ½¸ø¶¨µÄ³¤¶È</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>ftruncate</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> + <methodparam><type>int</type><parameter>size</parameter></methodparam> + </methodsynopsis> + <para> + ½ÓÊÜÎļþÖ¸Õë <parameter>handle</parameter> ×÷Ϊ²ÎÊý£¬²¢½«Îļþ´óС½ØÈ¡Îª + <parameter>size</parameter>¡£&return.success; + </para> + <note> + <para> + ÎļþÖ»»áÔÚ <emphasis>append</emphasis> ģʽϸı䡣ÔÚ + <emphasis>write</emphasis> ģʽÏ£¬±ØÐë¼ÓÉÏ <function>fseek</function> + ²Ù×÷¡£ + </para> + </note> + <note> + <para> + ÔÚ PHP 4.3.3 ֮ǰ£¬<function>ftruncate</function> Ôڳɹ¦Ê±·µ»ØÒ»¸ö + <type>integer</type> Öµ 1£¬¶ø²»ÊÇ <type>boolean</type> µÄ &true;¡£ + </para> + </note> + <para> + ²Î¼û <function>fopen</function> + ºÍ <function>fseek</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/is-dir.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/filesystem/functions/is-dir.xml diff -u phpdoc-zh/reference/filesystem/functions/is-dir.xml:1.4 phpdoc-zh/reference/filesystem/functions/is-dir.xml:1.5 --- phpdoc-zh/reference/filesystem/functions/is-dir.xml:1.4 Sun Aug 14 10:58:40 2005 +++ phpdoc-zh/reference/filesystem/functions/is-dir.xml Tue Sep 13 13:00:32 2005 @@ -1,54 +1,54 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.10 Maintainer: dallas Status: ready --> - <refentry id="function.is-dir"> - <refnamediv> - <refname>is_dir</refname> - <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñÊÇÒ»¸öĿ¼</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>is_dir</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <para> - Èç¹ûÎļþÃû´æÔÚ²¢ÇÒΪĿ¼Ôò·µ»Ø &true;¡£Èç¹û - <parameter>filename</parameter> ÊÇÒ»¸öÏà¶Ô·¾¶£¬Ôò°´ÕÕµ±Ç°¹¤×÷Ŀ¼¼ì²éÆäÏà¶Ô·¾¶¡£ - </para> - ¬e.clearstatcache; - <para> - <example> - <title><function>is_dir</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.is-dir"> + <refnamediv> + <refname>is_dir</refname> + <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñÊÇÒ»¸öĿ¼</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>is_dir</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹ûÎļþÃû´æÔÚ²¢ÇÒΪĿ¼Ôò·µ»Ø &true;¡£Èç¹û + <parameter>filename</parameter> ÊÇÒ»¸öÏà¶Ô·¾¶£¬Ôò°´ÕÕµ±Ç°¹¤×÷Ŀ¼¼ì²éÆäÏà¶Ô·¾¶¡£ + </para> + ¬e.clearstatcache; + <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> + </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> - ºÍ <function>is_link</function>¡£ - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + &tip.fopen-wrapper.stat; + <para> + ²Î¼û + <function>chdir</function>£¬<link linkend="class.dir">dir</link>£¬<function>opendir</function>£¬<function>is_file</function> + ºÍ <function>is_link</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/is-executable.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/reference/filesystem/functions/is-executable.xml diff -u phpdoc-zh/reference/filesystem/functions/is-executable.xml:1.5 phpdoc-zh/reference/filesystem/functions/is-executable.xml:1.6 --- phpdoc-zh/reference/filesystem/functions/is-executable.xml:1.5 Sun Aug 14 10:55:56 2005 +++ phpdoc-zh/reference/filesystem/functions/is-executable.xml Tue Sep 13 13:00:32 2005 @@ -1,28 +1,28 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.12 Maintainer: dallas Status: ready --> - <refentry id="function.is-executable"> - <refnamediv> - <refname>is_executable</refname> - <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñ¿ÉÖ´ÐÐ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>is_executable</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <para> - Èç¹ûÎļþ´æÔÚÇÒ¿ÉÖ´ÐÐÔò·µ»Ø &true;¡£ - </para> - <para> - <function>is_executable</function> ×Ô PHP 5.0.0 °æÆð¿ÉÓÃÓÚ <productname>Windows</productname>¡£ - </para> - <para> - <example> - <title><function>is_executable</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.is-executable"> + <refnamediv> + <refname>is_executable</refname> + <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñ¿ÉÖ´ÐÐ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>is_executable</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹ûÎļþ´æÔÚÇÒ¿ÉÖ´ÐÐÔò·µ»Ø &true;¡£ + </para> + <para> + <function>is_executable</function> ×Ô PHP 5.0.0 °æÆð¿ÉÓÃÓÚ <productname>Windows</productname>¡£ + </para> + <para> + <example> + <title><function>is_executable</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php @@ -36,17 +36,17 @@ ?> ]]> - </programlisting> - </example> - </para> - ¬e.clearstatcache; - &tip.fopen-wrapper.stat; - <para> - ²Î¼û <function>is_file</function> - ºÍ <function>is_link</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + ¬e.clearstatcache; + &tip.fopen-wrapper.stat; + <para> + ²Î¼û <function>is_file</function> + ºÍ <function>is_link</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/is-file.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/filesystem/functions/is-file.xml diff -u phpdoc-zh/reference/filesystem/functions/is-file.xml:1.4 phpdoc-zh/reference/filesystem/functions/is-file.xml:1.5 --- phpdoc-zh/reference/filesystem/functions/is-file.xml:1.4 Sun Aug 14 10:54:12 2005 +++ phpdoc-zh/reference/filesystem/functions/is-file.xml Tue Sep 13 13:00:32 2005 @@ -1,49 +1,49 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> - <refentry id="function.is-file"> - <refnamediv> - <refname>is_file</refname> - <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñΪһ¸öÕý³£µÄÎļþ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>is_file</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <para> - Èç¹ûÎļþ´æÔÚÇÒΪÕý³£µÄÎļþÔò·µ»Ø &true;¡£ - </para> - <para> - <example> - <title><function>is_file</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.is-file"> + <refnamediv> + <refname>is_file</refname> + <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñΪһ¸öÕý³£µÄÎļþ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>is_file</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹ûÎļþ´æÔÚÇÒΪÕý³£µÄÎļþÔò·µ»Ø &true;¡£ + </para> + <para> + <example> + <title><function>is_file</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php var_dump(is_file('a_file.txt')) . "\n"; var_dump(is_file('/usr/bin/')) . "\n"; ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ bool(true) bool(false) ]]> - </screen> - </example> - </para> - ¬e.clearstatcache; - &tip.fopen-wrapper.stat; - <para> - ²Î¼û <function>is_dir</function> ºÍ - <function>is_link</function>¡£ - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + ¬e.clearstatcache; + &tip.fopen-wrapper.stat; + <para> + ²Î¼û <function>is_dir</function> ºÍ + <function>is_link</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: