cvs: phpdoc-zh /reference/filesystem/functions chmod.xml copy.xml disk-total-space.xml file-exists.xml file-get-contents.xml glob.xml mkdir.xml
move-uploaded-file.xml parse-ini-file.xml pathinfo.xml rename.xml rmdir.xml

From: Date: Sun, 04 Sep 2005 07:04:06 +0000
Subject: cvs: phpdoc-zh /reference/filesystem/functions chmod.xml copy.xml disk-total-space.xml file-exists.xml file-get-contents.xml glob.xml mkdir.xml
move-uploaded-file.xml parse-ini-file.xml pathinfo.xml rename.xml rmdir.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2588@lists.php.net to get a copy of this message
dallas Sun Sep 4 03:04:06 2005 EDT Modified files: /phpdoc-zh/reference/filesystem/functions chmod.xml copy.xml disk-total-space.xml file-exists.xml file-get-contents.xml glob.xml mkdir.xml move-uploaded-file.xml parse-ini-file.xml pathinfo.xml rename.xml rmdir.xml Log: WS fix and decorations.

http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/chmod.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-zh/reference/filesystem/functions/chmod.xml diff -u phpdoc-zh/reference/filesystem/functions/chmod.xml:1.6 phpdoc-zh/reference/filesystem/functions/chmod.xml:1.7 --- phpdoc-zh/reference/filesystem/functions/chmod.xml:1.6 Wed Aug 31 12:19:13 2005 +++ phpdoc-zh/reference/filesystem/functions/chmod.xml Sun Sep 4 03:04:04 2005 @@ -1,30 +1,30 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.13 Maintainer: dallas Status: ready --> - <refentry id="function.chmod"> - <refnamediv> - <refname>chmod</refname> - <refpurpose>¸Ä±äÎļþģʽ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>chmod</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - <methodparam><type>int</type><parameter>mode</parameter></methodparam> - </methodsynopsis> - <para> - ³¢ÊÔ½« <parameter>filename</parameter> ËùÖ¸¶¨ÎļþµÄģʽ¸Ä³É - <parameter>mode</parameter> Ëù¸ø¶¨µÄ¡£ - </para> - <para> - ×¢Òâ <parameter>mode</parameter> ²»»á±»×Ô¶¯µ±³É°Ë½øÖÆÊýÖµ£¬¶øÇÒÒ²²»ÄÜÓÃ×Ö·û´®£¨ÀýÈç "g+w"£©¡£ÒªÈ·±£ÕýÈ·²Ù×÷£¬ÐèÒª¸ø - <parameter>mode</parameter> Ç°Ãæ¼ÓÉÏ 0£º - </para> - <para> - <informalexample> - <programlisting role="php"> +<refentry id="function.chmod"> + <refnamediv> + <refname>chmod</refname> + <refpurpose>¸Ä±äÎļþģʽ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>chmod</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <methodparam><type>int</type><parameter>mode</parameter></methodparam> + </methodsynopsis> + <para> + ³¢ÊÔ½« <parameter>filename</parameter> ËùÖ¸¶¨ÎļþµÄģʽ¸Ä³É + <parameter>mode</parameter> Ëù¸ø¶¨µÄ¡£ + </para> + <para> + ×¢Òâ <parameter>mode</parameter> ²»»á±»×Ô¶¯µ±³É°Ë½øÖÆÊýÖµ£¬¶øÇÒÒ²²»ÄÜÓÃ×Ö·û´®£¨ÀýÈç "g+w"£©¡£ÒªÈ·±£ÕýÈ·²Ù×÷£¬ÐèÒª¸ø + <parameter>mode</parameter> Ç°Ãæ¼ÓÉÏ 0£º + </para> + <para> + <informalexample> + <programlisting role="php"> <![CDATA[ <?php chmod("/somedir/somefile", 755); // Ê®½øÖÆÊý£¬¿ÉÄܲ»¶Ô @@ -32,18 +32,18 @@ chmod("/somedir/somefile", 0755); // °Ë½øÖÆÊý£¬ÕýÈ·µÄ mode Öµ ?> ]]> - </programlisting> - </informalexample> - </para> - <para> - <parameter>mode</parameter> ²ÎÊý°üº¬Èý¸ö°Ë½øÖÆÊý°´Ë³Ðò·Ö±ðÖ¸¶¨ÁËËùÓÐÕß¡¢ËùÓÐÕßËùÔÚµÄ×éÒÔ¼°ËùÓÐÈ˵ķÃÎÊÏÞÖÆ¡£Ã¿Ò»²¿·Ö¶¼¿ÉÒÔͨ¹ý¼ÓÈëËùÐèµÄȨÏÞÀ´¼ÆËã³öËùÒªµÄȨÏÞ¡£Êý×Ö 1 - ±íʾʹÎļþ¿ÉÖ´ÐУ¬Êý×Ö 2 ±íʾʹÎļþ¿Éд£¬Êý×Ö 4 - ±íʾʹÎļþ¿É¶Á¡£¼ÓÈëÕâЩÊý×ÖÀ´Öƶ¨ËùÐèÒªµÄȨÏÞ¡£ÓÐ¹Ø UNIX ϵͳµÄÎļþȨÏÞ¿ÉÒÔÔĶÁÊֲᡰman 1 - chmod¡±ºÍ¡°man 2 chmod¡±¡£ - </para> - <para> - <informalexample> - <programlisting role="php"> + </programlisting> + </informalexample> + </para> + <para> + <parameter>mode</parameter> ²ÎÊý°üº¬Èý¸ö°Ë½øÖÆÊý°´Ë³Ðò·Ö±ðÖ¸¶¨ÁËËùÓÐÕß¡¢ËùÓÐÕßËùÔÚµÄ×éÒÔ¼°ËùÓÐÈ˵ķÃÎÊÏÞÖÆ¡£Ã¿Ò»²¿·Ö¶¼¿ÉÒÔͨ¹ý¼ÓÈëËùÐèµÄȨÏÞÀ´¼ÆËã³öËùÒªµÄȨÏÞ¡£Êý×Ö 1 + ±íʾʹÎļþ¿ÉÖ´ÐУ¬Êý×Ö 2 ±íʾʹÎļþ¿Éд£¬Êý×Ö 4 + ±íʾʹÎļþ¿É¶Á¡£¼ÓÈëÕâЩÊý×ÖÀ´Öƶ¨ËùÐèÒªµÄȨÏÞ¡£ÓÐ¹Ø UNIX ϵͳµÄÎļþȨÏÞ¿ÉÒÔÔĶÁÊֲᡰman 1 + chmod¡±ºÍ¡°man 2 chmod¡±¡£ + </para> + <para> + <informalexample> + <programlisting role="php"> <![CDATA[ <?php // Read and write for owner, nothing for everybody else @@ -59,30 +59,30 @@ chmod("/somedir/somefile", 0750); ?> ]]> - </programlisting> - </informalexample> - </para> - <para> - &return.success; - </para> - <note> - <para> - µ±Ç°Óû§Ö¸µÄÊÇÖ´ÐÐ PHP µÄÓû§¡£ºÜ¿ÉÄܺÍͨ³£µÄ shell »òÕß FTP - Óû§²»ÊÇͬһ¸ö¡£ÔÚ´ó¶àÊýϵͳÏÂÎļþģʽֻÄܱ»ÎļþËùÓÐÕßµÄÓû§¸Ä±ä¡£ - </para> - </note> - &note.no-remote; - <note> - <simpara> - µ± &safemode; ´ò¿ªµÄʱºò£¬PHP »á¼ì²éËù²Ù×÷µÄÎļþÊÇ·ñºÍÕýÔÚÖ´ÐеĽű¾¾ßÓÐÏàͬµÄ - UID £¨ËùÓÐÕߣ©¡£Òª×¢ÒâµÄÊÇ£¬²»ÄÜÐÞ¸Ä SUID¡¢SGID ºÍ sticky bits¡£ - </simpara> - </note> - <para> - ²Î¼û <function>chown</function> ºÍ <function>chgrp</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </informalexample> + </para> + <para> + &return.success; + </para> + <note> + <para> + µ±Ç°Óû§Ö¸µÄÊÇÖ´ÐÐ PHP µÄÓû§¡£ºÜ¿ÉÄܺÍͨ³£µÄ shell »òÕß FTP + Óû§²»ÊÇͬһ¸ö¡£ÔÚ´ó¶àÊýϵͳÏÂÎļþģʽֻÄܱ»ÎļþËùÓÐÕßµÄÓû§¸Ä±ä¡£ + </para> + </note> + &note.no-remote; + <note> + <simpara> + µ±&safemode;´ò¿ªµÄʱºò£¬PHP »á¼ì²éËù²Ù×÷µÄÎļþÊÇ·ñºÍÕýÔÚÖ´ÐеĽű¾¾ßÓÐÏàͬµÄ + UID £¨ËùÓÐÕߣ©¡£Òª×¢ÒâµÄÊÇ£¬²»ÄÜÐÞ¸Ä SUID£¬SGID ºÍ sticky bits¡£ + </simpara> + </note> + <para> + ²Î¼û <function>chown</function> ºÍ <function>chgrp</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/copy.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-zh/reference/filesystem/functions/copy.xml diff -u phpdoc-zh/reference/filesystem/functions/copy.xml:1.7 phpdoc-zh/reference/filesystem/functions/copy.xml:1.8 --- phpdoc-zh/reference/filesystem/functions/copy.xml:1.7 Tue Aug 16 10:07:25 2005 +++ phpdoc-zh/reference/filesystem/functions/copy.xml Sun Sep 4 03:04:04 2005 @@ -1,24 +1,24 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.7 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.8 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.13 Maintainer: dallas Status: ready --> - <refentry id="function.copy"> - <refnamediv> - <refname>copy</refname> - <refpurpose>¿½±´Îļþ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>copy</methodname> - <methodparam><type>string</type><parameter>source</parameter></methodparam> - <methodparam><type>string</type><parameter>dest</parameter></methodparam> - </methodsynopsis> - <para> - ½«Îļþ´Ó <parameter>source</parameter> ¿½±´µ½ <parameter>dest</parameter>¡£&return.success; - <example> - <title><function>copy</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.copy"> + <refnamediv> + <refname>copy</refname> + <refpurpose>¿½±´Îļþ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>copy</methodname> + <methodparam><type>string</type><parameter>source</parameter></methodparam> + <methodparam><type>string</type><parameter>dest</parameter></methodparam> + </methodsynopsis> + <para> + ½«Îļþ´Ó <parameter>source</parameter> ¿½±´µ½ <parameter>dest</parameter>¡£&return.success; + <example> + <title><function>copy</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $file = 'example.txt'; @@ -29,36 +29,37 @@ } ?> ]]> - </programlisting> - </example> - </para> - <para> - Èç¹ûÒªÒÆ¶¯ÎļþµÄ»°£¬ÇëʹÓà <function>rename</function> º¯Êý¡£ - </para> - <note> - <para> - ´Ó PHP 4.3.0 ¿ªÊ¼£¬Èç¹ûÆôÓÃÁË¡°fopen wrappers¡±µÄ»°£¬<parameter>source</parameter> ºÍ - <parameter>dest</parameter> ¶¼¿ÉÒÔÊÇ URL¡£¸ü¶àϸ½Ú¼û <function>fopen</function>¡£Èç¹û - <parameter>dest</parameter> ÊÇÒ»¸ö URL£¬ÔòÈç¹û·âװЭÒé²»Ö§³Ö¸²¸ÇÒÑÓеÄÎļþʱ¿½±´²Ù×÷»áʧ°Ü¡£ - </para> - </note> - <warning> - <para> - Èç¹ûÄ¿±êÎļþÒÑ´æÔÚ£¬½«»á±»¸²¸Ç¡£ - </para> - </warning> - <note> - <para> - Windows ¼æÈÝ£ºÈç¹û¸´ÖÆÒ»¸öûÓÐÌå»ýÊôÐÔµÄÎļþ£¬<function>copy</function> - ½«·µ»Ø &false; £¬µ«ÎļþÒ²»á±»ÕýÈ·¸´ÖÆ¡£ - </para> - </note> - <para> - ²Î¼û <function>move_uploaded_file</function>£¬<function>rename</function> - ºÍÊÖ²áÖйØÓÚ<link linkend="features.file-upload">ÎļþÉÏ´«´¦Àí</link>Ò»½Ú¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <para> + Èç¹ûÒªÒÆ¶¯ÎļþµÄ»°£¬ÇëʹÓà <function>rename</function> º¯Êý¡£ + </para> + <note> + <para> + ´Ó PHP 4.3.0 ¿ªÊ¼£¬Èç¹ûÆôÓÃÁË¡°fopen wrappers¡±µÄ»°£¬<parameter>source</parameter> ºÍ + <parameter>dest</parameter> ¶¼¿ÉÒÔÊÇ URL¡£¸ü¶àϸ½Ú¼û <function>fopen</function>¡£Èç¹û + <parameter>dest</parameter> ÊÇÒ»¸ö URL£¬ÔòÈç¹û·âװЭÒé²»Ö§³Ö¸²¸ÇÒÑÓеÄÎļþʱ¿½±´²Ù×÷»áʧ°Ü¡£ + </para> + </note> + <warning> + <para> + Èç¹ûÄ¿±êÎļþÒÑ´æÔÚ£¬½«»á±»¸²¸Ç¡£ + </para> + </warning> + <note> + <title>Windows ¼æÈÝ</title> + <para> + Èç¹û¸´ÖÆÒ»¸öÁã×Ö½ÚµÄÎļþ£¬<function>copy</function> + ½«·µ»Ø &false; £¬µ«ÎļþÒ²»á±»ÕýÈ·¸´ÖÆ¡£ + </para> + </note> + <para> + ²Î¼û <function>move_uploaded_file</function>£¬<function>rename</function> + ºÍÊÖ²áÖйØÓÚ<link linkend="features.file-upload">ÎļþÉÏ´«´¦Àí</link>Ò»½Ú¡£ + </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/disk-total-space.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/filesystem/functions/disk-total-space.xml diff -u phpdoc-zh/reference/filesystem/functions/disk-total-space.xml:1.4 phpdoc-zh/reference/filesystem/functions/disk-total-space.xml:1.5 --- phpdoc-zh/reference/filesystem/functions/disk-total-space.xml:1.4 Fri Jul 15 13:17:27 2005 +++ phpdoc-zh/reference/filesystem/functions/disk-total-space.xml Sun Sep 4 03:04:04 2005 @@ -1,25 +1,25 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> - <refentry id="function.disk-total-space"> - <refnamediv> - <refname>disk_total_space</refname> - <refpurpose>·µ»ØÒ»¸öĿ¼µÄ´ÅÅÌ×Ü´óС</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>float</type><methodname>disk_total_space</methodname> - <methodparam><type>string</type><parameter>directory</parameter></methodparam> - </methodsynopsis> - <para> - ¸ø³öÒ»¸ö°üº¬ÓÐÒ»¸öĿ¼µÄ×Ö·û´®£¬±¾º¯Êý½«¸ù¾ÝÏàÓ¦µÄÎļþϵͳ»ò´ÅÅÌ·ÖÇø·µ»ØËùÓеÄ×Ö½ÚÊý¡£ - </para> - <para> - <example> - <title><function>disk_total_space</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.disk-total-space"> + <refnamediv> + <refname>disk_total_space</refname> + <refpurpose>·µ»ØÒ»¸öĿ¼µÄ´ÅÅÌ×Ü´óС</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>float</type><methodname>disk_total_space</methodname> + <methodparam><type>string</type><parameter>directory</parameter></methodparam> + </methodsynopsis> + <para> + ¸ø³öÒ»¸ö°üº¬ÓÐÒ»¸öĿ¼µÄ×Ö·û´®£¬±¾º¯Êý½«¸ù¾ÝÏàÓ¦µÄÎļþϵͳ»ò´ÅÅÌ·ÖÇø·µ»ØËùÓеÄ×Ö½ÚÊý¡£ + </para> + <para> + <example> + <title><function>disk_total_space</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php // $df °üº¬ "/" Ŀ¼µÄ´ÅÅÌ´óС @@ -30,19 +30,19 @@ disk_total_space("D:"); ?> ]]> - </programlisting> - </example> - </para> - &note.no-remote; - <simpara> - ²Î¼û <function>disk_free_space</function>¡£ - </simpara> - <simpara> - ¡¾ÒëÕß×¢¡¿±¾º¯Êý·µ»ØµÄÊǸÃĿ¼ËùÔڵĴÅÅÌ·ÖÇøµÄ×Ü´óС£¬Òò´ËÔÚ¸ø³öͬһ¸ö´ÅÅÌ·ÖÇøµÄ²»Í¬Ä¿Â¼×÷Ϊ²ÎÊýËùµÃµ½µÄ½á¹ûÍêÈ«Ïàͬ¡£ÔÚ - UNIX ºÍ Windows 2000 Öж¼Ö§³Ö½«Ò»¸ö´ÅÅÌ·ÖÇø¼ÓÔØÎªÒ»¸ö×ÓĿ¼£¬ÕâʱÕýȷʹÓñ¾º¯Êý¾ÍºÜÓÐÒâÒå¡£ - </simpara> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + &note.no-remote; + <simpara> + ²Î¼û <function>disk_free_space</function>¡£ + </simpara> + <simpara> + ¡¾ÒëÕß×¢¡¿±¾º¯Êý·µ»ØµÄÊǸÃĿ¼ËùÔڵĴÅÅÌ·ÖÇøµÄ×Ü´óС£¬Òò´ËÔÚ¸ø³öͬһ¸ö´ÅÅÌ·ÖÇøµÄ²»Í¬Ä¿Â¼×÷Ϊ²ÎÊýËùµÃµ½µÄ½á¹ûÍêÈ«Ïàͬ¡£ÔÚ + Unix ºÍ Windows 200x/XP Öж¼Ö§³Ö½«Ò»¸ö´ÅÅÌ·ÖÇø¼ÓÔØÎªÒ»¸ö×ÓĿ¼£¬ÕâʱÕýȷʹÓñ¾º¯Êý¾ÍºÜÓÐÒâÒå¡£ + </simpara> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/file-exists.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-zh/reference/filesystem/functions/file-exists.xml diff -u phpdoc-zh/reference/filesystem/functions/file-exists.xml:1.7 phpdoc-zh/reference/filesystem/functions/file-exists.xml:1.8 --- phpdoc-zh/reference/filesystem/functions/file-exists.xml:1.7 Tue Aug 16 01:47:14 2005 +++ phpdoc-zh/reference/filesystem/functions/file-exists.xml Sun Sep 4 03:04:04 2005 @@ -1,30 +1,30 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.7 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.8 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.14 Maintainer: dallas Status: ready --> - <refentry id="function.file-exists"> - <refnamediv> - <refname>file_exists</refname> - <refpurpose>¼ì²éÎļþ»òĿ¼ÊÇ·ñ´æÔÚ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>file_exists</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <simpara> - Èç¹ûÓÉ <parameter>filename</parameter> Ö¸¶¨µÄÎļþ»òĿ¼´æÔÚÔò·µ»Ø - &true;£¬·ñÔò·µ»Ø &false;¡£ - </simpara> - <para> - ÔÚ Windows ÖÐÒªÓà <filename>//computername/share/filename</filename> »òÕß - <filename>\\computername\share\filename</filename> À´¼ì²éÍøÂçÖеĹ²ÏíÎļþ¡£ - </para> - <para> - <example> - <title>²âÊÔÒ»¸öÎļþÊÇ·ñ´æÔÚ</title> - <programlisting role="php"> +<refentry id="function.file-exists"> + <refnamediv> + <refname>file_exists</refname> + <refpurpose>¼ì²éÎļþ»òĿ¼ÊÇ·ñ´æÔÚ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>file_exists</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <simpara> + Èç¹ûÓÉ <parameter>filename</parameter> Ö¸¶¨µÄÎļþ»òĿ¼´æÔÚÔò·µ»Ø + &true;£¬·ñÔò·µ»Ø &false;¡£ + </simpara> + <para> + ÔÚ Windows ÖÐÒªÓà <filename>//computername/share/filename</filename> »òÕß + <filename>\\computername\share\filename</filename> À´¼ì²éÍøÂçÖеĹ²ÏíÎļþ¡£ + </para> + <para> + <example> + <title>²âÊÔÒ»¸öÎļþÊÇ·ñ´æÔÚ</title> + <programlisting role="php"> <![CDATA[ <?php $filename = '/path/to/foo.txt'; @@ -36,26 +36,30 @@ } ?> ]]> - </programlisting> - </example> - </para> + </programlisting> + </example> + </para> - &note.clearstatcache; + &note.clearstatcache; - &tip.fopen-wrapper.stat; - <warning> - <para> - Èç¹ûÒòΪ<link - linkend="features.safe-mode">°²È«Ä£Ê½</link>µÄÏÞÖÆ¶øµ¼Ö²»ÄÜ·ÃÎÊÎļþµÄ»°£¬¸Ãº¯Êý»á·µ»Ø - &false;¡£È»¶ø£¬Èç¹ûÎļþÔÚ <link linkend="ini.safe-mode-include-dir">safe_mode_include_dir</link> - ËùÖ¸¶¨µÄĿ¼Äڵϰ£¬ÈÔÈ»¿ÉÒÔʹÓà <link linkend="function.include">included</link> ÒýÓᣠ- </para> - </warning> - <para> - ²Î¼û <function>is_readable</function>£¬<function>is_writable</function>£¬<function>is_file</function> ºÍ <function>file</function>¡£ - </para> - </refsect1> - </refentry> + &tip.fopen-wrapper.stat; + + <warning> + <para> + Èç¹ûÒòΪ<link + linkend="features.safe-mode">°²È«Ä£Ê½</link>µÄÏÞÖÆ¶øµ¼Ö²»ÄÜ·ÃÎÊÎļþµÄ»°£¬¸Ãº¯Êý»á·µ»Ø + &false;¡£È»¶ø£¬Èç¹ûÎļþÔÚ + <link linkend="ini.safe-mode-include-dir">safe_mode_include_dir</link> + ËùÖ¸¶¨µÄĿ¼Äڵϰ£¬ÈÔÈ»¿ÉÒÔʹÓà + <link linkend="function.include">include</link> À´°üº¬¡£ + </para> + </warning> + <para> + ²Î¼û <function>is_readable</function>£¬<function>is_writable</function>£¬<function>is_file</function> + ºÍ <function>file</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/file-get-contents.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-zh/reference/filesystem/functions/file-get-contents.xml diff -u phpdoc-zh/reference/filesystem/functions/file-get-contents.xml:1.7 phpdoc-zh/reference/filesystem/functions/file-get-contents.xml:1.8 --- phpdoc-zh/reference/filesystem/functions/file-get-contents.xml:1.7 Tue Aug 16 09:34:49 2005 +++ phpdoc-zh/reference/filesystem/functions/file-get-contents.xml Sun Sep 4 03:04:04 2005 @@ -1,99 +1,99 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.24 Maintainer: dallas Status: ready --> - <refentry id="function.file-get-contents"> - <refnamediv> - <refname>file_get_contents</refname> - <refpurpose>½«Õû¸öÎļþ¶ÁÈëÒ»¸ö×Ö·û´®</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>file_get_contents</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>use_include_path</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>maxlen</parameter></methodparam> - </methodsynopsis> - <para> - ºÍ <function>file</function> Ò»Ñù£¬Ö»³ýÁË - <function>file_get_contents</function> °ÑÎļþ¶ÁÈëÒ»¸ö×Ö·û´®¡£½«ÔÚ²ÎÊý - <parameter>offset</parameter> ËùÖ¸¶¨µÄλÖÿªÊ¼¶ÁÈ¡³¤¶ÈΪ - <parameter>maxlen</parameter> µÄÄÚÈÝ¡£Èç¹ûʧ°Ü£¬<function>file_get_contents</function> - ½«·µ»Ø &false;¡£ - </para> - <para> - <function>file_get_contents</function> - º¯ÊýÊÇÓÃÀ´½«ÎļþµÄÄÚÈݶÁÈëµ½Ò»¸ö×Ö·û´®ÖеÄÊ×Ñ¡·½·¨¡£Èç¹û²Ù×÷ϵͳ֧³Ö»¹»áʹÓÃÄÚ´æÓ³Éä¼¼ÊõÀ´ÔöÇ¿ÐÔÄÜ¡£ - </para> - <note> - <simpara> - Èç¹ûÒª´ò¿ªÓÐÌØÊâ×Ö·ûµÄ URL £¨±ÈÈç˵Óпոñ£©£¬¾ÍÐèҪʹÓà - <function>urlencode</function> ½øÐÐ URL ±àÂë¡£ - </simpara> - </note> - <note> - <para> - <parameter>context</parameter> ²ÎÊý¿ÉÒÔÓà &null; À´ºöÂÔ¡£ - </para> - </note> - </refsect1> +<refentry id="function.file-get-contents"> + <refnamediv> + <refname>file_get_contents</refname> + <refpurpose>½«Õû¸öÎļþ¶ÁÈëÒ»¸ö×Ö·û´®</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>file_get_contents</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>use_include_path</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>maxlen</parameter></methodparam> + </methodsynopsis> + <para> + ºÍ <function>file</function> Ò»Ñù£¬Ö»³ýÁË + <function>file_get_contents</function> °ÑÎļþ¶ÁÈëÒ»¸ö×Ö·û´®¡£½«ÔÚ²ÎÊý + <parameter>offset</parameter> ËùÖ¸¶¨µÄλÖÿªÊ¼¶ÁÈ¡³¤¶ÈΪ + <parameter>maxlen</parameter> µÄÄÚÈÝ¡£Èç¹ûʧ°Ü£¬<function>file_get_contents</function> + ½«·µ»Ø &false;¡£ + </para> + <para> + <function>file_get_contents</function> + º¯ÊýÊÇÓÃÀ´½«ÎļþµÄÄÚÈݶÁÈëµ½Ò»¸ö×Ö·û´®ÖеÄÊ×Ñ¡·½·¨¡£Èç¹û²Ù×÷ϵͳ֧³Ö»¹»áʹÓÃÄÚ´æÓ³Éä¼¼ÊõÀ´ÔöÇ¿ÐÔÄÜ¡£ + </para> + <note> + <simpara> + Èç¹ûÒª´ò¿ªÓÐÌØÊâ×Ö·ûµÄ URL £¨±ÈÈç˵Óпոñ£©£¬¾ÍÐèҪʹÓà + <function>urlencode</function> ½øÐÐ URL ±àÂë¡£ + </simpara> + </note> + <note> + <para> + <parameter>context</parameter> ²ÎÊý¿ÉÒÔÓà &null; À´ºöÂÔ¡£ + </para> + </note> + </refsect1> - <refsect1 role="changelog"> - &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>5.0.0</entry> - <entry> - Ìí¼ÓÁË¶Ô Context µÄÖ§³Ö¡£ - </entry> - </row> - <row> - <entry>5.1.0</entry> - <entry> - Ìí¼ÓÁË <parameter>offset</parameter> ºÍ - <parameter>maxlen</parameter> ²ÎÊý - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </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>5.0.0</entry> + <entry> + Ìí¼ÓÁË¶Ô context µÄÖ§³Ö¡£ + </entry> + </row> + <row> + <entry>5.1.0</entry> + <entry> + Ìí¼ÓÁË <parameter>offset</parameter> ºÍ + <parameter>maxlen</parameter> ²ÎÊý¡£ + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> - <refsect1 role="notes"> - &reftitle.notes; - &note.bin-safe; - &tip.fopen-wrapper; - &note.context-support; - &warn.ssl-non-standard; - </refsect1> + <refsect1 role="notes"> + &reftitle.notes; + &note.bin-safe; + &tip.fopen-wrapper; + &note.context-support; + &warn.ssl-non-standard; + </refsect1> - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><function>file</function></member> - <member><function>fgets</function></member> - <member><function>fread</function></member> - <member><function>readfile</function></member> - <member><function>file_put_contents</function></member> - <member><function>stream_get_contents</function></member> - </simplelist> - </para> - </refsect1> - </refentry> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>file</function></member> + <member><function>fgets</function></member> + <member><function>fread</function></member> + <member><function>readfile</function></member> + <member><function>file_put_contents</function></member> + <member><function>stream_get_contents</function></member> + </simplelist> + </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/glob.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/reference/filesystem/functions/glob.xml diff -u phpdoc-zh/reference/filesystem/functions/glob.xml:1.5 phpdoc-zh/reference/filesystem/functions/glob.xml:1.6 --- phpdoc-zh/reference/filesystem/functions/glob.xml:1.5 Sun Aug 14 11:11:18 2005 +++ phpdoc-zh/reference/filesystem/functions/glob.xml Sun Sep 4 03:04:04 2005 @@ -1,85 +1,83 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.19 Maintainer: dallas Status: ready --> - <refentry id="function.glob"> - <refnamediv> - <refname>glob</refname> - <refpurpose>ѰÕÒÓëģʽƥÅäµÄÎļþ·¾¶</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>array</type><methodname>glob</methodname> - <methodparam><type>string</type><parameter>pattern</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam> - </methodsynopsis> - <para> - <function>glob</function> º¯ÊýÒÀÕÕ libc glob() º¯ÊýʹÓõĹæÔòѰÕÒËùÓÐÓë - <parameter>pattern</parameter> Æ¥ÅäµÄÎļþ·¾¶£¬ÀàËÆÓÚÒ»°ã shells - ËùÓõĹæÔòÒ»Ñù¡£²»½øÐÐËõдÀ©Õ¹»ò²ÎÊýÌæ´ú¡£ - </para> - <para> - ·µ»ØÒ»¸ö°üº¬ÓÐÆ¥ÅäÎļþ/Ŀ¼µÄÊý×é¡£Èç¹û³ö´í·µ»Ø &false;¡£ - </para> - <para> - ÓÐЧ±ê¼ÇΪ£º - <itemizedlist> - <listitem> - <simpara> - <constant>GLOB_MARK</constant> - ÔÚÿ¸ö·µ»ØµÄÏîÄ¿ÖмÓÒ»¸öбÏß - </simpara> - </listitem> - <listitem> - <simpara> - <constant>GLOB_NOSORT</constant> - °´ÕÕÎļþÔÚĿ¼ÖгöÏÖµÄԭʼ˳Ðò·µ»Ø£¨²»ÅÅÐò£© - </simpara> - </listitem> - <listitem> - <simpara> - <constant>GLOB_NOCHECK</constant> - Èç¹ûûÓÐÎļþÆ¥ÅäÔò·µ»ØÓÃÓÚËÑË÷µÄģʽ - </simpara> - </listitem> - <listitem> - <simpara> - <constant>GLOB_NOESCAPE</constant> - ·´Ð±Ïß²»×ªÒåÔª×Ö·û - </simpara> - </listitem> - <listitem> - <simpara> - <constant>GLOB_BRACE</constant> - À©³ä {a,b,c} À´Æ¥Åä 'a'£¬'b' »ò 'c' - </simpara> - </listitem> - <listitem> - <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> - <para> - <example> - <title> - ÔõÑùÓà <function>glob</function> ·½±ãµØÌæ´ú <function>opendir</function> ºÍÏà¹Øº¯Êý - </title> - <programlisting role="php"> +<refentry id="function.glob"> + <refnamediv> + <refname>glob</refname> + <refpurpose>ѰÕÒÓëģʽƥÅäµÄÎļþ·¾¶</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>array</type><methodname>glob</methodname> + <methodparam><type>string</type><parameter>pattern</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam> + </methodsynopsis> + <para> + <function>glob</function> º¯ÊýÒÀÕÕ libc glob() º¯ÊýʹÓõĹæÔòѰÕÒËùÓÐÓë + <parameter>pattern</parameter> Æ¥ÅäµÄÎļþ·¾¶£¬ÀàËÆÓÚÒ»°ã shells + ËùÓõĹæÔòÒ»Ñù¡£²»½øÐÐËõдÀ©Õ¹»ò²ÎÊýÌæ´ú¡£ + </para> + <para> + ·µ»ØÒ»¸ö°üº¬ÓÐÆ¥ÅäÎļþ/Ŀ¼µÄÊý×é¡£Èç¹û³ö´í·µ»Ø &false;¡£ + </para> + <para> + ÓÐЧ±ê¼ÇΪ£º + <itemizedlist> + <listitem> + <simpara> + <constant>GLOB_MARK</constant> - ÔÚÿ¸ö·µ»ØµÄÏîÄ¿ÖмÓÒ»¸öбÏß + </simpara> + </listitem> + <listitem> + <simpara> + <constant>GLOB_NOSORT</constant> - °´ÕÕÎļþÔÚĿ¼ÖгöÏÖµÄԭʼ˳Ðò·µ»Ø£¨²»ÅÅÐò£© + </simpara> + </listitem> + <listitem> + <simpara> + <constant>GLOB_NOCHECK</constant> - Èç¹ûûÓÐÎļþÆ¥ÅäÔò·µ»ØÓÃÓÚËÑË÷µÄģʽ + </simpara> + </listitem> + <listitem> + <simpara> + <constant>GLOB_NOESCAPE</constant> - ·´Ð±Ïß²»×ªÒåÔª×Ö·û + </simpara> + </listitem> + <listitem> + <simpara> + <constant>GLOB_BRACE</constant> - À©³ä {a,b,c} À´Æ¥Åä 'a'£¬'b' »ò 'c' + </simpara> + </listitem> + <listitem> + <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> + <para> + <example> + <title>ÔõÑùÓà <function>glob</function> ·½±ãµØÌæ´ú + <function>opendir</function> ºÍÏà¹Øº¯Êý</title> + <programlisting role="php"> <![CDATA[ <?php foreach (glob("*.txt") as $filename) { @@ -87,27 +85,25 @@ } ?> ]]> - </programlisting> - <para> - Êä³ö½á¹ûÀàËÆ - </para> - <screen> - <![CDATA[ + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ funclist.txt size 44686 funcsummary.txt size 267625 quickref.txt size 137820 ]]> - </screen> - </example> - </para> - &note.no-remote; - <para> - ²Î¼û - <function>opendir</function>£¬<function>readdir</function>£¬<function>closedir</function> - ºÍ <function>fnmatch</function>¡£ - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + &note.no-remote; + <para> + ²Î¼û + <function>opendir</function>£¬<function>readdir</function>£¬<function>closedir</function> + ºÍ <function>fnmatch</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/mkdir.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/reference/filesystem/functions/mkdir.xml diff -u phpdoc-zh/reference/filesystem/functions/mkdir.xml:1.5 phpdoc-zh/reference/filesystem/functions/mkdir.xml:1.6 --- phpdoc-zh/reference/filesystem/functions/mkdir.xml:1.5 Sun Aug 14 10:25:16 2005 +++ phpdoc-zh/reference/filesystem/functions/mkdir.xml Sun Sep 4 03:04:04 2005 @@ -1,67 +1,67 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.17 Maintainer: dallas Status: ready --> - <refentry id="function.mkdir"> - <refnamediv> - <refname>mkdir</refname> - <refpurpose>н¨Ä¿Â¼</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>mkdir</methodname> - <methodparam><type>string</type><parameter>pathname</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> - </methodsynopsis> - <para> - ³¢ÊÔн¨Ò»¸öÓÉ <parameter>pathname</parameter> Ö¸¶¨µÄĿ¼¡£ - </para> - <para> - ×¢ÒâÒ²ÐíÄãÏëÓð˽øÖÆÊýÖ¸¶¨Ä£Ê½£¬Ò²¾ÍÊÇ˵¸ÃÊýÓ¦ÒÔÁã´òÍ·¡£Ä£Ê½Ò²»á±»µ±Ç°µÄ - umask Ð޸ģ¬¿ÉÒÔÓà <function>umask</function> À´¸Ä±ä¡£ - </para> - <para> - <note> - <para> - Mode ÔÚ Windows ϱ»ºöÂÔ¡£×Ô PHP 4.2.0 Æð³ÉΪ¿ÉÑ¡Ïî¡£ - </para> - </note> - </para> - <para> - ĬÈ쵀 mode ÊÇ 0777£¬Òâζ×Å×î´ó¿ÉÄܵķÃÎÊȨ¡£ÓÐ¹Ø mode µÄ¸ü¶àÐÅÏ¢ÇëÔĶÁ - <function>chmod</function> Ò³Ãæ¡£ - <example> - <title><function>mkdir</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.mkdir"> + <refnamediv> + <refname>mkdir</refname> + <refpurpose>н¨Ä¿Â¼</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>mkdir</methodname> + <methodparam><type>string</type><parameter>pathname</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> + </methodsynopsis> + <para> + ³¢ÊÔн¨Ò»¸öÓÉ <parameter>pathname</parameter> Ö¸¶¨µÄĿ¼¡£ + </para> + <para> + ×¢ÒâÒ²ÐíÏëÓð˽øÖÆÊýÖ¸¶¨Ä£Ê½£¬Ò²¾ÍÊÇ˵¸ÃÊýÓ¦ÒÔÁã´òÍ·¡£Ä£Ê½Ò²»á±»µ±Ç°µÄ + umask Ð޸ģ¬¿ÉÒÔÓà <function>umask</function> À´¸Ä±ä¡£ + </para> + <para> + <note> + <para> + Mode ÔÚ Windows ϱ»ºöÂÔ¡£×Ô PHP 4.2.0 Æð³ÉΪ¿ÉÑ¡Ïî¡£ + </para> + </note> + </para> + <para> + ĬÈ쵀 mode ÊÇ 0777£¬Òâζ×Å×î´ó¿ÉÄܵķÃÎÊȨ¡£ÓÐ¹Ø mode µÄ¸ü¶àÐÅÏ¢ÇëÔĶÁ + <function>chmod</function> Ò³Ãæ¡£ + <example> + <title><function>mkdir</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php mkdir("/path/to/my/dir", 0700); ?> ]]> - </programlisting> - </example> - </para> - <note> - <simpara> - ×Ô PHP 5.0.0 <function>rmdir</function> Ò²¿ÉÓÃÓÚ <emphasis>ijЩ</emphasis> - URL ·â×°¡£²Î¼û <xref linkend="wrappers"/> - ÁÐ±í¿´¿´ <function>rmdir</function> Ö§³ÖÄÄЩ URL ·â×°¡£ - </simpara> - </note> - <note> - <simpara> - <parameter>recursive</parameter> ²ÎÊýÊÇ PHP 5.0.0 Ìí¼ÓµÄ¡£ - </simpara> - </note> - <para> - &return.success; - </para> - <para> - ²Î¼û <function>rmdir</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <note> + <simpara> + ×Ô PHP 5.0.0 <function>rmdir</function> Ò²¿ÉÓÃÓÚ<emphasis>ijЩ</emphasis> + URL ·âװЭÒé¡£²Î¼û<xref linkend="wrappers"/> + µÄÁÐ±í¿´¿´ <function>rmdir</function> Ö§³ÖÄÄЩ URL ·âװЭÒé¡£ + </simpara> + </note> + <note> + <simpara> + <parameter>recursive</parameter> ²ÎÊýÊÇ PHP 5.0.0 Ìí¼ÓµÄ¡£ + </simpara> + </note> + <para> + &return.success; + </para> + <para> + ²Î¼û <function>rmdir</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/move-uploaded-file.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/filesystem/functions/move-uploaded-file.xml diff -u phpdoc-zh/reference/filesystem/functions/move-uploaded-file.xml:1.4 phpdoc-zh/reference/filesystem/functions/move-uploaded-file.xml:1.5 --- phpdoc-zh/reference/filesystem/functions/move-uploaded-file.xml:1.4 Tue Aug 16 12:30:22 2005 +++ phpdoc-zh/reference/filesystem/functions/move-uploaded-file.xml Sun Sep 4 03:04:04 2005 @@ -1,58 +1,59 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> - <refentry id="function.move-uploaded-file"> - <refnamediv> - <refname>move_uploaded_file</refname> - <refpurpose>½«ÉÏ´«µÄÎļþÒÆ¶¯µ½ÐÂλÖÃ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>move_uploaded_file</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - <methodparam><type>string</type><parameter>destination</parameter></methodparam> - </methodsynopsis> - <para> - ±¾º¯Êý¼ì²é²¢È·±£ÓÉ <parameter>filename</parameter> - Ö¸¶¨µÄÎļþÊǺϷ¨µÄÉÏ´«Îļþ£¨¼´Í¨¹ý PHP µÄ HTTP POST - ÉÏ´«»úÖÆËùÉÏ´«µÄ£©¡£Èç¹ûÎļþºÏ·¨£¬Ôò½«ÆäÒÆ¶¯ÎªÓÉ - <parameter>destination</parameter> Ö¸¶¨µÄÎļþ¡£ - </para> - <para> - Èç¹û <parameter>filename</parameter> - ²»ÊǺϷ¨µÄÉÏ´«Îļþ£¬²»»á³öÏÖÈκβÙ×÷£¬<function>move_uploaded_file</function> - ½«·µ»Ø &false;¡£ - </para> - <para> - Èç¹û <parameter>filename</parameter> - ÊǺϷ¨µÄÉÏ´«Îļþ£¬µ«³öÓÚijЩԭÒòÎÞ·¨Òƶ¯£¬²»»á³öÏÖÈκβÙ×÷£¬<function>move_uploaded_file</function> - ½«·µ»Ø &false;¡£´ËÍ⻹»á·¢³öÒ»Ìõ¾¯¸æ¡£ - </para> - <para> - ÕâÖÖ¼ì²éÏԵøñÍâÖØÒª£¬Èç¹ûÉÏ´«µÄÎļþÓпÉÄÜ»áÔì³É¶ÔÓû§»ò±¾ÏµÍ³µÄÆäËûÓû§ÏÔʾÆäÄÚÈݵϰ¡£ - </para> - <note> - <para> - <function>move_uploaded_file</function> ¶Ô &safemode; ºÍ - <link linkend="ini.open-basedir">open_basedir</link> ¶¼ÊÇÃô¸ÐµÄ¡£È»ºó£¬ÓÃÓÚÒÆ¶¯ - <parameter>filename</parameter> µÄ <parameter>destination</parameter> - ¿ÉÄÜ»áºÍÕâЩÉèÖòúÉú³åÍ»¡£<function>move_uploaded_file</function> - ½ö×÷ÓÃÓÚͨ¹ý PHP ÉÏ´«µÄÎļþÒÔÈ·±£Õâ¸ö²Ù×÷µÄ°²È«ÐÔ¡£ - </para> - </note> - <warning> - <para> - Èç¹ûÄ¿±êÎļþÒѾ­´æÔÚ£¬½«»á±»¸²¸Ç¡£ - </para> - </warning> - <para> - ²Î¼û <function>is_uploaded_file</function>£¬ÒÔ¼°<link - linkend="features.file-upload">ÎļþÉÏ´«´¦Àí</link>Ò»ÕÂÖеļòµ¥Ê¹ÓÃÀý×Ó¡£ - </para> - </refsect1> - </refentry> +<refentry id="function.move-uploaded-file"> + <refnamediv> + <refname>move_uploaded_file</refname> + <refpurpose>½«ÉÏ´«µÄÎļþÒÆ¶¯µ½ÐÂλÖÃ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>move_uploaded_file</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <methodparam><type>string</type><parameter>destination</parameter></methodparam> + </methodsynopsis> + <para> + ±¾º¯Êý¼ì²é²¢È·±£ÓÉ <parameter>filename</parameter> + Ö¸¶¨µÄÎļþÊǺϷ¨µÄÉÏ´«Îļþ£¨¼´Í¨¹ý PHP µÄ HTTP POST + ÉÏ´«»úÖÆËùÉÏ´«µÄ£©¡£Èç¹ûÎļþºÏ·¨£¬Ôò½«ÆäÒÆ¶¯ÎªÓÉ + <parameter>destination</parameter> Ö¸¶¨µÄÎļþ¡£ + </para> + <para> + Èç¹û <parameter>filename</parameter> + ²»ÊǺϷ¨µÄÉÏ´«Îļþ£¬²»»á³öÏÖÈκβÙ×÷£¬<function>move_uploaded_file</function> + ½«·µ»Ø &false;¡£ + </para> + <para> + Èç¹û <parameter>filename</parameter> + ÊǺϷ¨µÄÉÏ´«Îļþ£¬µ«³öÓÚijЩԭÒòÎÞ·¨Òƶ¯£¬²»»á³öÏÖÈκβÙ×÷£¬<function>move_uploaded_file</function> + ½«·µ»Ø &false;¡£´ËÍ⻹»á·¢³öÒ»Ìõ¾¯¸æ¡£ + </para> + <para> + ÕâÖÖ¼ì²éÏԵøñÍâÖØÒª£¬Èç¹ûÉÏ´«µÄÎļþÓпÉÄÜ»áÔì³É¶ÔÓû§»ò±¾ÏµÍ³µÄÆäËûÓû§ÏÔʾÆäÄÚÈݵϰ¡£ + </para> + <note> + <para> + <function>move_uploaded_file</function> ¶Ô&safemode;ºÍ + <link linkend="ini.open-basedir">open_basedir</link> ¶¼ÊÇÃô¸ÐµÄ¡£²»¹ý£¬ÏÞÖÆÖ»Õë¶Ô + <parameter>destination</parameter> ·¾¶£¬ÒòΪÔÊÐíÒÆ¶¯ÉÏ´«µÄÎļþÃû + <parameter>filename</parameter> + ¿ÉÄÜ»áÓëÕâЩÏÞÖÆ²úÉú³åÍ»¡£<function>move_uploaded_file</function> + ½ö×÷ÓÃÓÚͨ¹ý PHP ÉÏ´«µÄÎļþÒÔÈ·±£Õâ¸ö²Ù×÷µÄ°²È«ÐÔ¡£ + </para> + </note> + <warning> + <para> + Èç¹ûÄ¿±êÎļþÒѾ­´æÔÚ£¬½«»á±»¸²¸Ç¡£ + </para> + </warning> + <para> + ²Î¼û <function>is_uploaded_file</function>£¬ÒÔ¼°<link + linkend="features.file-upload">ÎļþÉÏ´«´¦Àí</link>Ò»ÕÂÖеļòµ¥Ê¹ÓÃÀý×Ó¡£ + </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/parse-ini-file.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/reference/filesystem/functions/parse-ini-file.xml diff -u phpdoc-zh/reference/filesystem/functions/parse-ini-file.xml:1.5 phpdoc-zh/reference/filesystem/functions/parse-ini-file.xml:1.6 --- phpdoc-zh/reference/filesystem/functions/parse-ini-file.xml:1.5 Sun Aug 14 09:04:36 2005 +++ phpdoc-zh/reference/filesystem/functions/parse-ini-file.xml Sun Sep 4 03:04:04 2005 @@ -1,68 +1,68 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.20 Maintainer: dallas Status: ready --> - <refentry id="function.parse-ini-file"> - <refnamediv> - <refname>parse_ini_file</refname> - <refpurpose>½âÎöÒ»¸öÅäÖÃÎļþ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>array</type><methodname>parse_ini_file</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>process_sections</parameter></methodparam> - </methodsynopsis> - <para> - <function>parse_ini_file</function> ÔØÈëÒ»¸öÓÉ - <parameter>filename</parameter> Ö¸¶¨µÄ ini - Îļþ£¬²¢½«ÆäÖеÄÉèÖÃ×÷Ϊһ¸öÁªºÏÊý×é·µ»Ø¡£Èç¹û½«×îºóµÄ - <parameter>process_sections</parameter> ²ÎÊýÉèΪ - &true;£¬½«µÃµ½Ò»¸ö¶àάÊý×飬°üÀ¨ÁËÅäÖÃÎļþÖÐÿһ½ÚµÄÃû³ÆºÍÉèÖá£<parameter>process_sections</parameter> - µÄĬÈÏÖµÊÇ &false;¡£ - </para> - <note> - <para> - ±¾º¯ÊýºÍ &php.ini; - ÎļþûÓйØÏµ£¬¸ÃÎļþÔÚÔËÐнű¾Ê±¾ÍÒѾ­´¦Àí¹ýÁË¡£±¾º¯Êý¿ÉÒÔÓÃÀ´¶ÁÈ¡Äã×Ô¼ºµÄÓ¦ÓóÌÐòµÄÅäÖÃÎļþ¡£ - </para> - </note> - <note> - <para> - Èç¹û ini ÎļþÖеÄÖµ°üº¬ÈκηÇ×ÖĸÊý×ÖµÄ×Ö·û£¬ÐèÒª½«ÆäÀ¨ÔÚË«ÒýºÅÖУ¨"£©¡£ - </para> - </note> - <note> - <simpara> - ×Ô PHP 4.2.1 Æä±¾º¯ÊýÒ²Êܵ½&safemode;ºÍ - <link linkend="ini.open-basedir">open_basedir</link> µÄÓ°Ïì¡£ - </simpara> - </note> - <note> - <para> - ×Ô PHP 5.0 °æ±¾¿ªÊ¼£¬¸Ãº¯ÊýÒ²´¦ÀíÑ¡ÏîÖµÄÚµÄÐÂÐС£ - </para> - </note> - <note> - <simpara> - ÓÐЩ±£Áô×Ö²»ÄÜ×÷Ϊ ini ÎļþÖеļüÃû£¬°üÀ¨£ºnull£¬yes£¬no£¬true ºÍ false¡£×Ö·û - <literal>|&amp;~![()"</literal> Ò²²»ÄÜÓÃÔÚ¼üÃûµÄÈκεط½£¬¶øÇÒÕâЩ×Ö·ûÔÚÑ¡ÏîÖµÖÐÓÐ×ÅÌØÊâµÄÒâÒå¡£ - </simpara> - </note> - <para> - ini ÎļþµÄ½á¹¹ºÍ &php.ini; µÄÏàËÆ¡£ - </para> - <para> - <link linkend="language.constants">³£Á¿</link>Ò²¿ÉÒÔÔÚ ini - ÎļþÖб»½âÎö£¬Òò´ËÈç¹ûÔÚÔËÐÐ <function>parse_ini_file</function> - ֮ǰ¶¨ÒåÁ˳£Á¿×÷Ϊ ini µÄÖµ£¬½«»á±»¼¯³Éµ½½á¹ûÖÐÈ¥¡£Ö»ÓÐ ini - µÄÖµ»á±»ÇóÖµ¡£ÀýÈ磺 - </para> - <para> - <example> - <title><filename>sample.ini</filename> µÄÄÚÈÝ</title> - <programlisting> +<refentry id="function.parse-ini-file"> + <refnamediv> + <refname>parse_ini_file</refname> + <refpurpose>½âÎöÒ»¸öÅäÖÃÎļþ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>array</type><methodname>parse_ini_file</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>process_sections</parameter></methodparam> + </methodsynopsis> + <para> + <function>parse_ini_file</function> ÔØÈëÒ»¸öÓÉ + <parameter>filename</parameter> Ö¸¶¨µÄ ini + Îļþ£¬²¢½«ÆäÖеÄÉèÖÃ×÷Ϊһ¸öÁªºÏÊý×é·µ»Ø¡£Èç¹û½«×îºóµÄ + <parameter>process_sections</parameter> ²ÎÊýÉèΪ + &true;£¬½«µÃµ½Ò»¸ö¶àάÊý×飬°üÀ¨ÁËÅäÖÃÎļþÖÐÿһ½ÚµÄÃû³ÆºÍÉèÖá£<parameter>process_sections</parameter> + µÄĬÈÏÖµÊÇ &false;¡£ + </para> + <note> + <para> + ±¾º¯ÊýºÍ &php.ini; + ÎļþûÓйØÏµ£¬¸ÃÎļþÔÚÔËÐнű¾Ê±¾ÍÒѾ­´¦Àí¹ýÁË¡£±¾º¯Êý¿ÉÒÔÓÃÀ´¶ÁÈ¡Äã×Ô¼ºµÄÓ¦ÓóÌÐòµÄÅäÖÃÎļþ¡£ + </para> + </note> + <note> + <para> + Èç¹û ini ÎļþÖеÄÖµ°üº¬ÈκηÇ×ÖĸÊý×ÖµÄ×Ö·û£¬ÐèÒª½«ÆäÀ¨ÔÚË«ÒýºÅÖУ¨"£©¡£ + </para> + </note> + <note> + <simpara> + ×Ô PHP 4.2.1 Æä±¾º¯ÊýÒ²Êܵ½&safemode;ºÍ + <link linkend="ini.open-basedir">open_basedir</link> µÄÓ°Ïì¡£ + </simpara> + </note> + <note> + <para> + ×Ô PHP 5.0 °æ±¾¿ªÊ¼£¬¸Ãº¯ÊýÒ²´¦ÀíÑ¡ÏîÖµÄÚµÄÐÂÐС£ + </para> + </note> + <note> + <simpara> + ÓÐЩ±£Áô×Ö²»ÄÜ×÷Ϊ ini ÎļþÖеļüÃû£¬°üÀ¨£ºnull£¬yes£¬no£¬true ºÍ false¡£×Ö·û + <literal>|&amp;~![()"</literal> Ò²²»ÄÜÓÃÔÚ¼üÃûµÄÈκεط½£¬¶øÇÒÕâЩ×Ö·ûÔÚÑ¡ÏîÖµÖÐÓÐ×ÅÌØÊâµÄÒâÒå¡£ + </simpara> + </note> + <para> + ini ÎļþµÄ½á¹¹ºÍ &php.ini; µÄÏàËÆ¡£ + </para> + <para> + <link linkend="language.constants">³£Á¿</link>Ò²¿ÉÒÔÔÚ ini + ÎļþÖб»½âÎö£¬Òò´ËÈç¹ûÔÚÔËÐÐ <function>parse_ini_file</function> + ֮ǰ¶¨ÒåÁ˳£Á¿×÷Ϊ ini µÄÖµ£¬½«»á±»¼¯³Éµ½½á¹ûÖÐÈ¥¡£Ö»ÓÐ ini + µÄÖµ»á±»ÇóÖµ¡£ÀýÈ磺 + </para> + <para> + <example> + <title><filename>sample.ini</filename> µÄÄÚÈÝ</title> + <programlisting> <![CDATA[ ; This is a sample configuration file ; Comments start with ';', as in php.ini @@ -76,13 +76,13 @@ path = /usr/local/bin URL = "http://www.example.com/~username" ]]> - </programlisting> - </example> - </para> - <para> - <example> - <title><function>parse_ini_file</function> Àý×Ó</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + <example> + <title><function>parse_ini_file</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php @@ -98,11 +98,9 @@ ?> ]]> - </programlisting> - <para> - ½«Êä³ö£º - </para> - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ Array ( @@ -129,15 +127,16 @@ ) ]]> - </screen> - </example> - </para> - <para> - ÓÉÊý×Ö×é³ÉµÄ¼üÃûºÍС½ÚÃû»á±» PHP µ±×÷ <link linkend="language.types.integer">integers</link> - À´´¦Àí£¬ËùÒÔÒÔ 0 ¿ªÍ·µÄÊý×ֻᱻµ±×÷°Ë½øÖƶøÒÔ 0x ¿ªÍ·µÄ»á±»µ±×÷Ê®Áù½øÖÆ¡£ - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + <para> + ÓÉÊý×Ö×é³ÉµÄ¼üÃûºÍС½ÚÃû»á±» PHP µ±×÷<link + linkend="language.types.integer">ÕûÊý</link>À´´¦Àí£¬Òò´ËÒÔ + 0 ¿ªÍ·µÄÊý×ֻᱻµ±×÷°Ë½øÖƶøÒÔ 0x ¿ªÍ·µÄ»á±»µ±×÷Ê®Áù½øÖÆ¡£ + </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/pathinfo.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/reference/filesystem/functions/pathinfo.xml diff -u phpdoc-zh/reference/filesystem/functions/pathinfo.xml:1.5 phpdoc-zh/reference/filesystem/functions/pathinfo.xml:1.6 --- phpdoc-zh/reference/filesystem/functions/pathinfo.xml:1.5 Sun Aug 14 08:51:20 2005 +++ phpdoc-zh/reference/filesystem/functions/pathinfo.xml Sun Sep 4 03:04:04 2005 @@ -1,34 +1,32 @@ <?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.pathinfo"> - <refnamediv> - <refname>pathinfo</refname> - <refpurpose>·µ»ØÎļþ·¾¶µÄÐÅÏ¢</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>array</type><methodname>pathinfo</methodname> - <methodparam><type>string</type><parameter>path</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> - </methodsynopsis> - <para> - <function>pathinfo</function> ·µ»ØÒ»¸öÁªºÏÊý×é°üº¬ÓÐ <literal>path</literal> - µÄÐÅÏ¢¡£°üÀ¨ÒÔϵÄÊý×éµ¥Ôª£º<literal>dirname</literal>£¬<literal>basename</literal> - ºÍ <literal>extension</literal>¡£ - </para> - <para> - ¿ÉÒÔͨ¹ý²ÎÊý <parameter>options</parameter> Ö¸¶¨Òª·µ»ØÄÄЩµ¥Ôª¡£ËüÃǰüÀ¨£º - <constant>PATHINFO_DIRNAME</constant>¡¢ - <constant>PATHINFO_BASENAME</constant> ºÍ - <constant>PATHINFO_EXTENSION</constant>¡£Ä¬ÈÏÊÇ·µ»ØÈ«²¿µÄµ¥Ôª¡£ - </para> - <para> - <example> - <title><function>pathinfo</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.pathinfo"> + <refnamediv> + <refname>pathinfo</refname> + <refpurpose>·µ»ØÎļþ·¾¶µÄÐÅÏ¢</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>array</type><methodname>pathinfo</methodname> + <methodparam><type>string</type><parameter>path</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> + </methodsynopsis> + <para> + <function>pathinfo</function> ·µ»ØÒ»¸öÁªºÏÊý×é°üº¬ÓÐ <literal>path</literal> + µÄÐÅÏ¢¡£°üÀ¨ÒÔϵÄÊý×éµ¥Ôª£º<literal>dirname</literal>£¬<literal>basename</literal> + ºÍ <literal>extension</literal>¡£ + </para> + <para> + ¿ÉÒÔͨ¹ý²ÎÊý <parameter>options</parameter> Ö¸¶¨Òª·µ»ØÄÄЩµ¥Ôª¡£ËüÃǰüÀ¨£º<constant>PATHINFO_DIRNAME</constant>£¬<constant>PATHINFO_BASENAME</constant> + ºÍ <constant>PATHINFO_EXTENSION</constant>¡£Ä¬ÈÏÊÇ·µ»ØÈ«²¿µÄµ¥Ôª¡£ + </para> + <para> + <example> + <title><function>pathinfo</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $path_parts = pathinfo("/www/htdocs/index.html"); @@ -37,31 +35,29 @@ echo $path_parts["extension"] . "\n"; ?> ]]> - </programlisting> - <para> - ½«Êä³ö£º - </para> - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ /www/htdocs index.html html ]]> - </screen> - </example> - </para> - <note> - <para> - ÓйØÈ¡µÃµ±Ç°Â·¾¶ÐÅÏ¢µÄ˵Ã÷£¬ÇëÔĶÁ<link - linkend="language.variables.predefined">Ô¤¶¨Òå±äÁ¿</link>Ò»Õ¡£ - </para> - </note> - <para> - ²Î¼û <function>dirname</function>£¬<function>basename</function>£¬<function>parse_url</function> - ºÍ <function>realpath</function>¡£ - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + <note> + <para> + ÓйØÈ¡µÃµ±Ç°Â·¾¶ÐÅÏ¢µÄ˵Ã÷£¬ÇëÔĶÁ<link + linkend="language.variables.predefined">Ô¤¶¨Òå±äÁ¿</link>Ò»½Ú¡£ + </para> + </note> + <para> + ²Î¼û <function>dirname</function>£¬<function>basename</function>£¬<function>parse_url</function> + ºÍ <function>realpath</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/rename.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-zh/reference/filesystem/functions/rename.xml diff -u phpdoc-zh/reference/filesystem/functions/rename.xml:1.8 phpdoc-zh/reference/filesystem/functions/rename.xml:1.9 --- phpdoc-zh/reference/filesystem/functions/rename.xml:1.8 Sun Aug 14 12:23:56 2005 +++ phpdoc-zh/reference/filesystem/functions/rename.xml Sun Sep 4 03:04:04 2005 @@ -1,66 +1,66 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.11 Maintainer: lm92 Status: ready --> - <refentry id="function.rename"> - <refnamediv> - <refname>rename</refname> - <refpurpose>ÖØÃüÃûÒ»¸öÎļþ»òĿ¼</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>rename</methodname> - <methodparam><type>string</type><parameter>oldname</parameter></methodparam> - <methodparam><type>string</type><parameter>newname</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> - </methodsynopsis> - <para> - ³¢ÊÔ°Ñ <parameter>oldname</parameter> ÖØÃüÃûΪ - <parameter>newname</parameter>¡£ - </para> - <para> - &return.success; - </para> - <para> - <example> - <title><function>rename</function> Àý×Ó </title> - <programlisting role="php"> +<refentry id="function.rename"> + <refnamediv> + <refname>rename</refname> + <refpurpose>ÖØÃüÃûÒ»¸öÎļþ»òĿ¼</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>rename</methodname> + <methodparam><type>string</type><parameter>oldname</parameter></methodparam> + <methodparam><type>string</type><parameter>newname</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> + </methodsynopsis> + <para> + ³¢ÊÔ°Ñ <parameter>oldname</parameter> ÖØÃüÃûΪ + <parameter>newname</parameter>¡£ + </para> + <para> + &return.success; + </para> + <para> + <example> + <title><function>rename</function> Àý×Ó </title> + <programlisting role="php"> <![CDATA[ <?php rename("/tmp/tmp_file.txt", "/home/user/login/docs/my_file.txt"); ?> ]]> - </programlisting> - </example> - </para> - <note> - <para> - ÔÚ PHP 4.3.3 ֮ǰ£¬<function>rename</function> ²»ÄÜÔÚ»ùÓÚ - *nix µÄϵͳÖпç´ÅÅÌ·ÖÇøÖØÃüÃûÎļþ¡£ - </para> - </note> - <note> - <simpara> - ×Ô PHP 5.0.0 Æð <function>rename</function> - Ò²¿ÉÓÃÓÚ<emphasis>ijЩ</emphasis> - URL ·â×°¡£²Î¼û <xref linkend="wrappers"/> - ÁÐ±í¿´¿´ <function>rename</function> Ö§³ÖÄÄЩ URL ·â×°¡£ - </simpara> - </note> - <note> - <simpara> - ÓÃÓÚ <parameter>oldname</parameter> ÖеķâװЭÒé<emphasis>±ØÐë</emphasis>ºÍÓÃÓÚ - <parameter>newname</parameter> ÖеÄÏàÆ¥Åä¡£ - </simpara> - </note> - &note.context-support; - <para> - ²Î¼û <function>copy</function>£¬<function>unlink</function> - ºÍ <function>move_uploaded_file</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <note> + <para> + ÔÚ PHP 4.3.3 ֮ǰ£¬<function>rename</function> ²»ÄÜÔÚ»ùÓÚ + *nix µÄϵͳÖпç´ÅÅÌ·ÖÇøÖØÃüÃûÎļþ¡£ + </para> + </note> + <note> + <simpara> + ×Ô PHP 5.0.0 Æð <function>rename</function> + Ò²¿ÉÓÃÓÚ<emphasis>ijЩ</emphasis> + URL ·âװЭÒé¡£²Î¼û<xref linkend="wrappers"/> + µÄÁÐ±í¿´¿´ <function>rename</function> Ö§³ÖÄÄЩ URL ·âװЭÒé¡£ + </simpara> + </note> + <note> + <simpara> + ÓÃÓÚ <parameter>oldname</parameter> ÖеķâװЭÒé<emphasis>±ØÐë</emphasis>ºÍÓÃÓÚ + <parameter>newname</parameter> ÖеÄÏàÆ¥Åä¡£ + </simpara> + </note> + &note.context-support; + <para> + ²Î¼û <function>copy</function>£¬<function>unlink</function> + ºÍ <function>move_uploaded_file</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/rmdir.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-zh/reference/filesystem/functions/rmdir.xml diff -u phpdoc-zh/reference/filesystem/functions/rmdir.xml:1.7 phpdoc-zh/reference/filesystem/functions/rmdir.xml:1.8 --- phpdoc-zh/reference/filesystem/functions/rmdir.xml:1.7 Sun Aug 14 08:22:44 2005 +++ phpdoc-zh/reference/filesystem/functions/rmdir.xml Sun Sep 4 03:04:04 2005 @@ -1,37 +1,36 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.7 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.8 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.9 Maintainer: dallas Status: ready --> - <refentry id="function.rmdir"> - <refnamediv> - <refname>rmdir</refname> - <refpurpose>ɾ³ýĿ¼</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>rmdir</methodname> - <methodparam><type>string</type><parameter>dirname</parameter></methodparam> - </methodsynopsis> - <para> - ³¢ÊÔɾ³ý <parameter>dirname</parameter> ËùÖ¸¶¨µÄĿ¼¡£ - ¸ÃĿ¼±ØÐëÊǿյ쬶øÇÒÒªÓÐÏàÓ¦µÄȨÏÞ¡£ - &return.success; - </para> - <note> - <simpara> - ×Ô PHP 5.0.0 <function>rmdir</function> Ò²¿ÉÓÃÓÚ <emphasis>ijЩ</emphasis> - URL ·â×°¡£²Î¼û <xref linkend="wrappers"/> - ÁÐ±í¿´¿´ <function>rmdir</function> Ö§³ÖÄÄЩ URL ·â×°¡£ - </simpara> - </note> - &note.context-support; - &note.sm.uidcheck.dir; - <para> - ²Î¼û <function>mkdir</function> ºÍ <function>unlink</function>¡£ - </para> - </refsect1> - </refentry> +<refentry id="function.rmdir"> + <refnamediv> + <refname>rmdir</refname> + <refpurpose>ɾ³ýĿ¼</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>rmdir</methodname> + <methodparam><type>string</type><parameter>dirname</parameter></methodparam> + </methodsynopsis> + <para> + ³¢ÊÔɾ³ý <parameter>dirname</parameter> ËùÖ¸¶¨µÄĿ¼¡£ + ¸ÃĿ¼±ØÐëÊǿյ쬶øÇÒÒªÓÐÏàÓ¦µÄȨÏÞ¡£&return.success; + </para> + <note> + <simpara> + ×Ô PHP 5.0.0 Æð <function>rmdir</function> Ò²¿ÉÓÃÓÚ<emphasis>ijЩ</emphasis> + URL ·âװЭÒé¡£²Î¼û<xref linkend="wrappers"/> + µÄÁÐ±í¿´¿´ <function>rmdir</function> Ö§³ÖÄÄЩ URL ·âװЭÒé¡£ + </simpara> + </note> + &note.context-support; + &note.sm.uidcheck.dir; + <para> + ²Î¼û <function>mkdir</function> ºÍ <function>unlink</function>¡£ + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:
« previous php.doc.zh (#2588) next »