cvs: phpdoc-zh /reference/filesystem/functions set-file-buffer.xml stat.xml symlink.xml tempnam.xml tmpfile.xml touch.xml

From: Date: Tue, 13 Sep 2005 16:53:07 +0000
Subject: cvs: phpdoc-zh /reference/filesystem/functions set-file-buffer.xml stat.xml symlink.xml tempnam.xml tmpfile.xml touch.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2659@lists.php.net to get a copy of this message
dallas Tue Sep 13 12:53:07 2005 EDT Modified files: /phpdoc-zh/reference/filesystem/functions set-file-buffer.xml stat.xml symlink.xml tempnam.xml tmpfile.xml touch.xml Log: WS fix.

http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/set-file-buffer.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-zh/reference/filesystem/functions/set-file-buffer.xml diff -u phpdoc-zh/reference/filesystem/functions/set-file-buffer.xml:1.6 phpdoc-zh/reference/filesystem/functions/set-file-buffer.xml:1.7 --- phpdoc-zh/reference/filesystem/functions/set-file-buffer.xml:1.6 Sun Sep 4 02:03:19 2005 +++ phpdoc-zh/reference/filesystem/functions/set-file-buffer.xml Tue Sep 13 12:53:03 2005 @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> <refentry id="function.set-file-buffer"> <refnamediv> <refname>set_file_buffer</refname> - <refpurpose><function>stream_set_write_buffer</function>µÄ&Alias;</refpurpose> + <refpurpose><function>stream_set_write_buffer</function> µÄ&Alias;</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/stat.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-zh/reference/filesystem/functions/stat.xml diff -u phpdoc-zh/reference/filesystem/functions/stat.xml:1.6 phpdoc-zh/reference/filesystem/functions/stat.xml:1.7 --- phpdoc-zh/reference/filesystem/functions/stat.xml:1.6 Sun Aug 14 08:14:57 2005 +++ phpdoc-zh/reference/filesystem/functions/stat.xml Tue Sep 13 12:53:04 2005 @@ -1,123 +1,123 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.6 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.7 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.12 Maintainer: dallas Status: ready --> - <refentry id="function.stat"> - <refnamediv> - <refname>stat</refname> - <refpurpose>¸ø³öÎļþµÄÐÅÏ¢</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>array</type><methodname>stat</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <para> - »ñÈ¡ÓÉ <parameter>filename</parameter> Ö¸¶¨µÄÎļþµÄͳ¼ÆÐÅÏ¢¡£Èç¹û - <parameter>filename</parameter> - ÊÇ·ûºÅÁ¬½Ó£¬Ôòͳ¼ÆÐÅÏ¢ÊǹØÓÚ±»Á¬½ÓÎļþ±¾ÉíµÄ£¬¶ø²»ÊÇ·ûºÅÁ¬½Ó¡£<function>lstat</function> - ºÍ <function>stat</function> Ïàͬ£¬Ö»³ýÁËËü»á·µ»Ø·ûºÅÁ¬½ÓµÄ״̬¡£ - </para> - <para> - Èç¹û³ö´í£¬<function>stat</function> ·µ»Ø &false;£¬²¢ÇÒ·¢³öÒ»Ìõ¾¯¸æ¡£ - </para> - <para> - ·µ»ØÒ»¸öÊý×é°üº¬ÓÐÎļþµÄͳ¼ÆÐÅÏ¢£¬¸ÃÊý×é¾ßÓÐÒÔÏÂÁгöµÄµ¥Ôª£¬Êý×éϱê´ÓÁ㿪ʼ¡£³ýÁËÊý×ÖË÷ÒýÖ®Íâ×Ô - PHP 4.0.6 Æð»¹¿ÉÒÔͨ¹ý¹ØÁªË÷ÒýÀ´·ÃÎÊ¡£ - </para> - <para> - <table> - <title><function>stat</function> ºÍ <function>fstat</function> ·µ»Ø¸ñʽ</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Êý×Öϱê</entry> - <entry>¹ØÁª¼üÃû£¨×Ô PHP 4.0.6£©</entry> - <entry>˵Ã÷</entry> - </row> - </thead> - <tbody> - <row> - <entry>0</entry> - <entry>dev</entry> - <entry>device number - É豸Ãû</entry> - </row> - <row> - <entry>1</entry> - <entry>ino</entry> - <entry>inode number - inode ºÅÂë</entry> - </row> - <row> - <entry>2</entry> - <entry>mode</entry> - <entry>inode protection mode - inode ±£»¤Ä£Ê½</entry> - </row> - <row> - <entry>3</entry> - <entry>nlink</entry> - <entry>number of links - ±»Á¬½ÓÊýÄ¿</entry> - </row> - <row> - <entry>4</entry> - <entry>uid</entry> - <entry>userid of owner - ËùÓÐÕßµÄÓû§id</entry> - </row> - <row> - <entry>5</entry> - <entry>gid</entry> - <entry>groupid of owner- ËùÓÐÕßµÄ×é id</entry> - </row> - <row> - <entry>6</entry> - <entry>rdev</entry> - <entry>device type, if inode device * - É豸ÀàÐÍ£¬Èç¹ûÊÇ inode É豸µÄ»°</entry> - </row> - <row> - <entry>7</entry> - <entry>size</entry> - <entry>size in bytes - Îļþ´óСµÄ×Ö½ÚÊý</entry> - </row> - <row> - <entry>8</entry> - <entry>atime</entry> - <entry>time of last access (unix timestamp) - ÉϴηÃÎÊʱ¼ä£¨Unix ʱ¼ä´Á£©</entry> - </row> - <row> - <entry>9</entry> - <entry>mtime</entry> - <entry>time of last modification (unix timestamp) - ÉÏ´ÎÐÞ¸Äʱ¼ä£¨Unix ʱ¼ä´Á£©</entry> - </row> - <row> - <entry>10</entry> - <entry>ctime</entry> - <entry>time of last change (unix timestamp) - Éϴθıäʱ¼ä£¨Unix ʱ¼ä´Á£©</entry> - </row> - <row> - <entry>11</entry> - <entry>blksize</entry> - <entry>blocksize of filesystem IO * - Îļþϵͳ IO µÄ¿é´óС</entry> - </row> - <row> - <entry>12</entry> - <entry>blocks</entry> - <entry>number of blocks allocated - ËùÕ¼¾Ý¿éµÄÊýÄ¿</entry> - </row> - </tbody> - </tgroup> - </table> - * - ½öÔÚÖ§³Ö st_blksize ÀàÐ͵ÄϵͳÏÂÓÐЧ¡£ÆäËüϵͳ£¨Èç Windows£©·µ»Ø -1¡£ - </para> +<refentry id="function.stat"> + <refnamediv> + <refname>stat</refname> + <refpurpose>¸ø³öÎļþµÄÐÅÏ¢</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>array</type><methodname>stat</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + »ñÈ¡ÓÉ <parameter>filename</parameter> Ö¸¶¨µÄÎļþµÄͳ¼ÆÐÅÏ¢¡£Èç¹û + <parameter>filename</parameter> + ÊÇ·ûºÅÁ¬½Ó£¬Ôòͳ¼ÆÐÅÏ¢ÊǹØÓÚ±»Á¬½ÓÎļþ±¾ÉíµÄ£¬¶ø²»ÊÇ·ûºÅÁ¬½Ó¡£<function>lstat</function> + ºÍ <function>stat</function> Ïàͬ£¬Ö»³ýÁËËü»á·µ»Ø·ûºÅÁ¬½ÓµÄ״̬¡£ + </para> + <para> + Èç¹û³ö´í£¬<function>stat</function> ·µ»Ø &false;£¬²¢ÇÒ·¢³öÒ»Ìõ¾¯¸æ¡£ + </para> + <para> + ·µ»ØÒ»¸öÊý×é°üº¬ÓÐÎļþµÄͳ¼ÆÐÅÏ¢£¬¸ÃÊý×é¾ßÓÐÒÔÏÂÁгöµÄµ¥Ôª£¬Êý×éϱê´ÓÁ㿪ʼ¡£³ýÁËÊý×ÖË÷ÒýÖ®Íâ×Ô + PHP 4.0.6 Æð»¹¿ÉÒÔͨ¹ý¹ØÁªË÷ÒýÀ´·ÃÎÊ¡£ + </para> + <para> + <table> + <title><function>stat</function> ºÍ <function>fstat</function> ·µ»Ø¸ñʽ</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Êý×Öϱê</entry> + <entry>¹ØÁª¼üÃû£¨×Ô PHP 4.0.6£©</entry> + <entry>˵Ã÷</entry> + </row> + </thead> + <tbody> + <row> + <entry>0</entry> + <entry>dev</entry> + <entry>device number - É豸Ãû</entry> + </row> + <row> + <entry>1</entry> + <entry>ino</entry> + <entry>inode number - inode ºÅÂë</entry> + </row> + <row> + <entry>2</entry> + <entry>mode</entry> + <entry>inode protection mode - inode ±£»¤Ä£Ê½</entry> + </row> + <row> + <entry>3</entry> + <entry>nlink</entry> + <entry>number of links - ±»Á¬½ÓÊýÄ¿</entry> + </row> + <row> + <entry>4</entry> + <entry>uid</entry> + <entry>userid of owner - ËùÓÐÕßµÄÓû§id</entry> + </row> + <row> + <entry>5</entry> + <entry>gid</entry> + <entry>groupid of owner- ËùÓÐÕßµÄ×é id</entry> + </row> + <row> + <entry>6</entry> + <entry>rdev</entry> + <entry>device type, if inode device * - É豸ÀàÐÍ£¬Èç¹ûÊÇ inode É豸µÄ»°</entry> + </row> + <row> + <entry>7</entry> + <entry>size</entry> + <entry>size in bytes - Îļþ´óСµÄ×Ö½ÚÊý</entry> + </row> + <row> + <entry>8</entry> + <entry>atime</entry> + <entry>time of last access (unix timestamp) - ÉϴηÃÎÊʱ¼ä£¨Unix ʱ¼ä´Á£©</entry> + </row> + <row> + <entry>9</entry> + <entry>mtime</entry> + <entry>time of last modification (unix timestamp) - ÉÏ´ÎÐÞ¸Äʱ¼ä£¨Unix ʱ¼ä´Á£©</entry> + </row> + <row> + <entry>10</entry> + <entry>ctime</entry> + <entry>time of last change (unix timestamp) - Éϴθıäʱ¼ä£¨Unix ʱ¼ä´Á£©</entry> + </row> + <row> + <entry>11</entry> + <entry>blksize</entry> + <entry>blocksize of filesystem IO * - Îļþϵͳ IO µÄ¿é´óС</entry> + </row> + <row> + <entry>12</entry> + <entry>blocks</entry> + <entry>number of blocks allocated - ËùÕ¼¾Ý¿éµÄÊýÄ¿</entry> + </row> + </tbody> + </tgroup> + </table> + * - ½öÔÚÖ§³Ö st_blksize ÀàÐ͵ÄϵͳÏÂÓÐЧ¡£ÆäËüϵͳ£¨Èç Windows£©·µ»Ø -1¡£ + </para> - &note.clearstatcache; + &note.clearstatcache; + &tip.fopen-wrapper.stat; - &tip.fopen-wrapper.stat; - <para> - ²Î¼û <function>lstat</function>£¬<function>fstat</function>£¬<function>filemtime</function> ºÍ - <function>filegroup</function>¡£ - </para> - </refsect1> - </refentry> + <para> + ²Î¼û <function>lstat</function>£¬<function>fstat</function>£¬<function>filemtime</function> ºÍ + <function>filegroup</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/symlink.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/reference/filesystem/functions/symlink.xml diff -u phpdoc-zh/reference/filesystem/functions/symlink.xml:1.5 phpdoc-zh/reference/filesystem/functions/symlink.xml:1.6 --- phpdoc-zh/reference/filesystem/functions/symlink.xml:1.5 Fri Jul 15 13:17:27 2005 +++ phpdoc-zh/reference/filesystem/functions/symlink.xml Tue Sep 13 12:53:04 2005 @@ -1,35 +1,35 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> - <refentry id="function.symlink"> - <refnamediv> - <refname>symlink</refname> - <refpurpose>½¨Á¢·ûºÅÁ¬½Ó</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>symlink</methodname> - <methodparam><type>string</type><parameter>target</parameter></methodparam> - <methodparam><type>string</type><parameter>link</parameter></methodparam> - </methodsynopsis> - <para> - <function>symlink</function> ¶ÔÓÚÒÑÓÐµÄ - <parameter>target</parameter> ½¨Á¢Ò»¸öÃûΪ - <parameter>link</parameter> µÄ·ûºÅÁ¬½Ó¡£ - </para> - <para> - &return.success; - </para> - &note.no-windows; - <para> - ²Î¼û <function>link</function> À´½¨Á¢Ó²Á¬½Ó£¬ÒÔ¼° - <function>readlink</function> ºÍ - <function>linkinfo</function>¡£ - </para> - </refsect1> - </refentry> +<refentry id="function.symlink"> + <refnamediv> + <refname>symlink</refname> + <refpurpose>½¨Á¢·ûºÅÁ¬½Ó</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>symlink</methodname> + <methodparam><type>string</type><parameter>target</parameter></methodparam> + <methodparam><type>string</type><parameter>link</parameter></methodparam> + </methodsynopsis> + <para> + <function>symlink</function> ¶ÔÓÚÒÑÓÐµÄ + <parameter>target</parameter> ½¨Á¢Ò»¸öÃûΪ + <parameter>link</parameter> µÄ·ûºÅÁ¬½Ó¡£ + </para> + <para> + &return.success; + </para> + &note.no-windows; + <para> + ²Î¼û <function>link</function> À´½¨Á¢Ó²Á¬½Ó£¬ÒÔ¼° + <function>readlink</function> ºÍ + <function>linkinfo</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/tempnam.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/reference/filesystem/functions/tempnam.xml diff -u phpdoc-zh/reference/filesystem/functions/tempnam.xml:1.5 phpdoc-zh/reference/filesystem/functions/tempnam.xml:1.6 --- phpdoc-zh/reference/filesystem/functions/tempnam.xml:1.5 Sun Aug 14 08:06:18 2005 +++ phpdoc-zh/reference/filesystem/functions/tempnam.xml Tue Sep 13 12:53:04 2005 @@ -1,43 +1,43 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: lm92 $ --> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> - <refentry id="function.tempnam"> - <refnamediv> - <refname>tempnam</refname> - <refpurpose>½¨Á¢Ò»¸ö¾ßÓÐΨһÎļþÃûµÄÎļþ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>string</type><methodname>tempnam</methodname> - <methodparam><type>string</type><parameter>dir</parameter></methodparam> - <methodparam><type>string</type><parameter>prefix</parameter></methodparam> - </methodsynopsis> - <para> - ÔÚÖ¸¶¨Ä¿Â¼Öн¨Á¢Ò»¸ö¾ßÓÐΨһÎļþÃûµÄÎļþ¡£Èç¹û¸ÃĿ¼²»´æÔÚ£¬<function>tempnam</function> - »áÔÚϵͳÁÙʱĿ¼ÖÐÉú³ÉÒ»¸öÎļþ£¬²¢·µ»ØÆäÎļþÃû¡£ - </para> - <para> - ÔÚ PHP 4.0.6 ֮ǰ£¬<function>tempnam</function> - º¯ÊýµÄÐÐΪȡ¾öÓÚϵͳ¡£ÔÚ Windows Ï TMP - »·¾³±äÁ¿»áÔ½¹ý <parameter>dir</parameter> - ²ÎÊý£¬ÔÚ Linux Ï TMPDIR - »·¾³±äÁ¿ÓÅÏÈ£¬¶øÔÚ SVR4 ÏÂ×ÜÊÇʹÓà <parameter>dir</parameter> - ²ÎÊý£¬Èç¹ûÆäÖ¸ÏòµÄĿ¼´æÔڵϰ¡£Èç¹ûÓÐÒÉÎÊÇë²Î¿¼ÏµÍ³ÎĵµÖÐµÄ - tempnam(3) º¯Êý¡£ - </para> - <note> - <simpara> - Èç¹û PHP ²»ÄÜÔÚÖ¸¶¨µÄ <parameter>dir</parameter> - ²ÎÊýÖд´½¨Îļþ£¬ÔòÍ˻ص½ÏµÍ³Ä¬ÈÏÖµ¡£ - </simpara> - </note> - <para> - ·µ»ØÐµÄÁÙʱÎļþÃû£¬³ö´í·µ»Ø &false;¡£ - <example> - <title><function>tempnam</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.tempnam"> + <refnamediv> + <refname>tempnam</refname> + <refpurpose>½¨Á¢Ò»¸ö¾ßÓÐΨһÎļþÃûµÄÎļþ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>string</type><methodname>tempnam</methodname> + <methodparam><type>string</type><parameter>dir</parameter></methodparam> + <methodparam><type>string</type><parameter>prefix</parameter></methodparam> + </methodsynopsis> + <para> + ÔÚÖ¸¶¨Ä¿Â¼Öн¨Á¢Ò»¸ö¾ßÓÐΨһÎļþÃûµÄÎļþ¡£Èç¹û¸ÃĿ¼²»´æÔÚ£¬<function>tempnam</function> + »áÔÚϵͳÁÙʱĿ¼ÖÐÉú³ÉÒ»¸öÎļþ£¬²¢·µ»ØÆäÎļþÃû¡£ + </para> + <para> + ÔÚ PHP 4.0.6 ֮ǰ£¬<function>tempnam</function> + º¯ÊýµÄÐÐΪȡ¾öÓÚϵͳ¡£ÔÚ Windows Ï TMP + »·¾³±äÁ¿»áÔ½¹ý <parameter>dir</parameter> + ²ÎÊý£¬ÔÚ Linux Ï TMPDIR + »·¾³±äÁ¿ÓÅÏÈ£¬¶øÔÚ SVR4 ÏÂ×ÜÊÇʹÓà <parameter>dir</parameter> + ²ÎÊý£¬Èç¹ûÆäÖ¸ÏòµÄĿ¼´æÔڵϰ¡£Èç¹ûÓÐÒÉÎÊÇë²Î¿¼ÏµÍ³ÎĵµÖÐµÄ + tempnam(3) º¯Êý¡£ + </para> + <note> + <simpara> + Èç¹û PHP ²»ÄÜÔÚÖ¸¶¨µÄ <parameter>dir</parameter> + ²ÎÊýÖд´½¨Îļþ£¬ÔòÍ˻ص½ÏµÍ³Ä¬ÈÏÖµ¡£ + </simpara> + </note> + <para> + ·µ»ØÐµÄÁÙʱÎļþÃû£¬³ö´í·µ»Ø &false;¡£ + <example> + <title><function>tempnam</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $tmpfname = tempnam("/tmp", "FOO"); @@ -48,19 +48,19 @@ unlink($tmpfname); ?> ]]> - </programlisting> - </example> - </para> - <note> - <simpara> - ±¾º¯ÊýµÄÐÐΪÔÚ 4.0.3 °æÖиıäÁË¡£Ò²»á½¨Á¢Ò»¸öÁÙʱÎļþÒÔ±ÜÃ⾺ÕùÇéÐΣ¬¼´ÓпÉÄÜ»áÔÚ²úÉú³ö×÷ΪÎļþÃûµÄ×Ö·û´®Óë½Å±¾ÕæÕý½¨Á¢¸ÃÎļþÖ®¼ä»áÔÚÎļþϵͳÖдæÔÚͬÃûÎļþ¡£×¢Ò⣬Èç¹û²»ÔÙÐèÒª¸ÃÎļþÔòҪɾ³ý´ËÎļþ£¬²»»á×Ô¶¯É¾³ýµÄ¡£ - </simpara> - </note> - <para> - ²Î¼û <function>tmpfile</function> ºÍ <function>unlink</function>¡£ - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <note> + <simpara> + ±¾º¯ÊýµÄÐÐΪÔÚ 4.0.3 °æÖиıäÁË¡£Ò²»á½¨Á¢Ò»¸öÁÙʱÎļþÒÔ±ÜÃ⾺ÕùÇéÐΣ¬¼´ÓпÉÄÜ»áÔÚ²úÉú³ö×÷ΪÎļþÃûµÄ×Ö·û´®Óë½Å±¾ÕæÕý½¨Á¢¸ÃÎļþÖ®¼ä»áÔÚÎļþϵͳÖдæÔÚͬÃûÎļþ¡£×¢Ò⣬Èç¹û²»ÔÙÐèÒª¸ÃÎļþÔòҪɾ³ý´ËÎļþ£¬²»»á×Ô¶¯É¾³ýµÄ¡£ + </simpara> + </note> + <para> + ²Î¼û <function>tmpfile</function> ºÍ <function>unlink</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/tmpfile.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/reference/filesystem/functions/tmpfile.xml diff -u phpdoc-zh/reference/filesystem/functions/tmpfile.xml:1.5 phpdoc-zh/reference/filesystem/functions/tmpfile.xml:1.6 --- phpdoc-zh/reference/filesystem/functions/tmpfile.xml:1.5 Fri Jul 15 13:17:27 2005 +++ phpdoc-zh/reference/filesystem/functions/tmpfile.xml Tue Sep 13 12:53:04 2005 @@ -1,32 +1,32 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> - <refentry id="function.tmpfile"> - <refnamediv> - <refname>tmpfile</refname> - <refpurpose>½¨Á¢Ò»¸öÁÙʱÎļþ</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>resource</type><methodname>tmpfile</methodname> - <void/> - </methodsynopsis> - <para> - ÒÔ¶Áд (w+) ģʽ½¨Á¢Ò»¸ö¾ßÓÐΨһÎļþÃûµÄÁÙʱÎļþ£¬·µ»ØÒ»¸öÓë - <function>fopen</function> Ëù·µ»ØÏàËÆµÄÎļþ¾ä±ú¡£Îļþ»áÔڹرպó£¨Óà - <function>fclose</function>£©×Ô¶¯±»É¾³ý£¬»òµ±½Å±¾½áÊøºó¡£ - </para> - <para> - ÏêϸÐÅÏ¢Çë²Î¿¼ÏµÍ³ÊÖ²áÖÐµÄ - <literal>tmpfile(3)</literal> º¯Êý£¬ÒÔ¼° - <filename>stdio.h</filename> Í·Îļþ¡£ - </para> - <para> - <example> - <title><function>tmpfile</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.tmpfile"> + <refnamediv> + <refname>tmpfile</refname> + <refpurpose>½¨Á¢Ò»¸öÁÙʱÎļþ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>resource</type><methodname>tmpfile</methodname> + <void/> + </methodsynopsis> + <para> + ÒÔ¶Áд£¨w+£©Ä£Ê½½¨Á¢Ò»¸ö¾ßÓÐΨһÎļþÃûµÄÁÙʱÎļþ£¬·µ»ØÒ»¸öÓë + <function>fopen</function> Ëù·µ»ØÏàËÆµÄÎļþ¾ä±ú¡£Îļþ»áÔڹرպó£¨Óà + <function>fclose</function>£©×Ô¶¯±»É¾³ý£¬»òµ±½Å±¾½áÊøºó¡£ + </para> + <para> + ÏêϸÐÅÏ¢Çë²Î¿¼ÏµÍ³ÊÖ²áÖÐµÄ + <literal>tmpfile(3)</literal> º¯Êý£¬ÒÔ¼° + <filename>stdio.h</filename> Í·Îļþ¡£ + </para> + <para> + <example> + <title><function>tmpfile</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $temp = tmpfile(); @@ -36,20 +36,20 @@ fclose($temp); // this removes the file ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ writing to tempfile ]]> - </screen> - </example> - </para> - <para> - ²Î¼û <function>tempnam</function>¡£ - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + <para> + ²Î¼û <function>tempnam</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/touch.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/reference/filesystem/functions/touch.xml diff -u phpdoc-zh/reference/filesystem/functions/touch.xml:1.5 phpdoc-zh/reference/filesystem/functions/touch.xml:1.6 --- phpdoc-zh/reference/filesystem/functions/touch.xml:1.5 Mon Aug 1 11:27:27 2005 +++ phpdoc-zh/reference/filesystem/functions/touch.xml Tue Sep 13 12:53:04 2005 @@ -1,35 +1,35 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.9 Maintainer: dallas Status: ready --> - <refentry id="function.touch"> - <refnamediv> - <refname>touch</refname> - <refpurpose>É趨ÎļþµÄ·ÃÎʺÍÐÞ¸Äʱ¼ä</refpurpose> - </refnamediv> - <refsect1> - <title>˵Ã÷</title> - <methodsynopsis> - <type>bool</type><methodname>touch</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>time</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>atime</parameter></methodparam> - </methodsynopsis> - <para> - ³¢ÊÔ½«ÓÉ <parameter>filename</parameter> - ¸ø³öµÄÎļþµÄ·ÃÎʺÍÐÞ¸Äʱ¼äÉ趨Ϊ¸ø³öµÄʱ¼ä¡£Èç¹ûûÓиø³ö¿ÉÑ¡²ÎÊý - <parameter>time</parameter>£¬ÔòʹÓõ±Ç°Ê±¼ä¡£ÕâºÍ utime£¨ÓÐʱҲ½Ð×ö - utimes£©Ëù×÷µÄµÈ¼Û¡£Èç¹û¸ø³öÁ˵ÚÈý¸ö²ÎÊý - <parameter>atime</parameter>£¬Ôò¸ø¶¨ÎļþµÄ·ÃÎÊʱ¼ä»á±»ÉèΪ - <parameter>atime</parameter>¡£×¢Òâ·ÃÎÊʱ¼ä×ÜÊǻᱻÐ޸ĵ쬲»ÂÛÓм¸¸ö²ÎÊý¡£ - </para> - <para> - Èç¹ûÎļþ²»´æÔÚ£¬Ôò»á±»´´½¨¡£&return.success; - </para> - <para> - <example> - <title><function>touch</function> Àý×Ó</title> - <programlisting role="php"> +<refentry id="function.touch"> + <refnamediv> + <refname>touch</refname> + <refpurpose>É趨ÎļþµÄ·ÃÎʺÍÐÞ¸Äʱ¼ä</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>touch</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>time</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>atime</parameter></methodparam> + </methodsynopsis> + <para> + ³¢ÊÔ½«ÓÉ <parameter>filename</parameter> + ¸ø³öµÄÎļþµÄ·ÃÎʺÍÐÞ¸Äʱ¼äÉ趨Ϊ¸ø³öµÄʱ¼ä¡£Èç¹ûûÓиø³ö¿ÉÑ¡²ÎÊý + <parameter>time</parameter>£¬ÔòʹÓõ±Ç°Ê±¼ä¡£ÕâºÍ utime£¨ÓÐʱҲ½Ð×ö + utimes£©Ëù×÷µÄµÈ¼Û¡£Èç¹û¸ø³öÁ˵ÚÈý¸ö²ÎÊý + <parameter>atime</parameter>£¬Ôò¸ø¶¨ÎļþµÄ·ÃÎÊʱ¼ä»á±»ÉèΪ + <parameter>atime</parameter>¡£×¢Òâ·ÃÎÊʱ¼ä×ÜÊǻᱻÐ޸ĵ쬲»ÂÛÓм¸¸ö²ÎÊý¡£ + </para> + <para> + Èç¹ûÎļþ²»´æÔÚ£¬Ôò»á±»´´½¨¡£&return.success; + </para> + <para> + <example> + <title><function>touch</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php if (touch($FileName)) { @@ -39,11 +39,11 @@ } ?> ]]> - </programlisting> - </example> - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:
« previous php.doc.zh (#2659) next »