cvs: phpdoc-zh /reference/filesystem/functions basename.xml chgrp.xml chmod.xml chown.xml clearstatcache.xml

From: Date: Sun, 22 Sep 2002 19:01:54 +0000
Subject: cvs: phpdoc-zh /reference/filesystem/functions basename.xml chgrp.xml chmod.xml chown.xml clearstatcache.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-629@lists.php.net to get a copy of this message
dallas Sun Sep 22 15:01:54 2002 EDT Added files: /phpdoc-zh/reference/filesystem/functions basename.xml chgrp.xml chmod.xml chown.xml clearstatcache.xml Log: Translation completed.

Index: phpdoc-zh/reference/filesystem/functions/basename.xml +++ phpdoc-zh/reference/filesystem/functions/basename.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> <refentry id="function.basename"> <refnamediv> <refname>basename</refname> <refpurpose>·µ»ØÂ·¾¶ÖеÄÎļþÃû²¿·Ö</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>string</type><methodname>basename</methodname> <methodparam><type>string</type><parameter>path</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>suffix</parameter></methodparam> </methodsynopsis> <para> ¸ø³öÒ»¸ö°üº¬ÓÐÖ¸ÏòÒ»¸öÎļþµÄȫ·¾¶µÄ×Ö·û´®£¬±¾º¯Êý·µ»Ø»ù±¾µÄÎļþÃû¡£Èç¹ûÎļþÃûÊÇÒÔ <parameter>suffix</parameter> ½áÊøµÄ£¬ÄÇÕâÒ»²¿·ÖÒ²»á±»È¥µô¡£ </para> <para> ÔÚ Windows ÖУ¬Ð±Ïߣ¨<literal>/</literal>£©ºÍ·´Ð±Ïߣ¨<literal>\</literal>£©¶¼¿ÉÒÔÓÃ×÷·¾¶·Ö¸ô·û¡£ÔÚÆäËü»·¾³ÏÂÊÇбÏߣ¨<literal>/</literal>£©¡£ </para> <para> <example> <title><function>basename</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ $path = "/home/httpd/html/index.php"; $file = basename ($path); // $file is set to "index.php" $file = basename ($path,".php"); // $file is set to "index" ]]> </programlisting> </example> </para> <note> <para> <parameter>suffix</parameter> ²ÎÊýÊÇ PHP 4.1.0 мӵġ£ </para> </note> <para> ²Î¼û <function>dirname</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/filesystem/functions/chgrp.xml +++ phpdoc-zh/reference/filesystem/functions/chgrp.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id="function.chgrp"> <refnamediv> <refname>chgrp</refname> <refpurpose>¸Ä±äÎļþËùÊôµÄ×é</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>int</type><methodname>chgrp</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam><type>mixed</type><parameter>group</parameter></methodparam> </methodsynopsis> <para> ³¢ÊÔ½«Îļþ <parameter>filename</parameter> ËùÊôµÄ×é¸Ä³É <parameter>group</parameter>£¨Í¨¹ý×éÃû»ò×é ID Ö¸¶¨£©¡£Ö»Óг¬¼¶Óû§¿ÉÒÔÈÎÒâÐÞ¸ÄÎļþµÄ×飬ÆäËüÓû§¿ÉÄÜÖ»Äܽ«ÎļþµÄ×é¸Ä³É¸ÃÓû§×Ô¼ºËùÔÚµÄ×é¡£ </para> <para> &return.success; </para> <para> ²Î¼û <function>chown</function> ºÍ <function>chmod</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/filesystem/functions/chmod.xml +++ phpdoc-zh/reference/filesystem/functions/chmod.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id="function.chmod"> <refnamediv> <refname>chmod</refname> <refpurpose>¸Ä±äÎļþģʽ</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>int</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£º <informalexample> <programlisting role="php"> <![CDATA[ chmod ("/somedir/somefile", 755); // Ê®½øÖÆÊý£¬¿ÉÄܲ»¶Ô chmod ("/somedir/somefile", "u+rwx,go+rx"); // ×Ö·û´®£¬²»¶Ô chmod ("/somedir/somefile", 0755); // °Ë½øÖÆÊý£¬ÕýÈ·µÄ mode Öµ ]]> </programlisting> </informalexample> </para> <para> &return.success; </para> <para> ²Î¼û <function>chown</function> ºÍ <function>chgrp</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/filesystem/functions/chown.xml +++ phpdoc-zh/reference/filesystem/functions/chown.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <refentry id="function.chown"> <refnamediv> <refname>chown</refname> <refpurpose>¸Ä±äÎļþµÄËùÓÐÕß</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>int</type><methodname>chown</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam><type>mixed</type><parameter>user</parameter></methodparam> </methodsynopsis> <para> ³¢ÊÔ½«Îļþ <parameter>filename</parameter> µÄËùÓÐÕ߸ijÉÓû§ <parameter>user</parameter>£¨ÓÉÓû§Ãû»òÓû§ ID Ö¸¶¨£©¡£Ö»Óг¬¼¶Óû§¿ÉÒԸıäÎļþµÄËùÓÐÕß¡£ </para> <para> &return.success; </para> <para> ²Î¼û <function>chmod</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/filesystem/functions/clearstatcache.xml +++ phpdoc-zh/reference/filesystem/functions/clearstatcache.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> <refentry id="function.clearstatcache"> <refnamediv> <refname>clearstatcache</refname> <refpurpose>Çå³ýÎļþ״̬»º´æ</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>void</type><methodname>clearstatcache</methodname> <void/> </methodsynopsis> <para> µ±Ê¹Óà <function>stat</function>£¬<function>lstat</function> »òÕßÈκÎÁÐÔÚÊÜÓ°Ï캯Êý±í£¨¼ûÏÂÃæ£©Öеĺ¯Êýʱ£¬PHP ½«»º´æÕâЩº¯ÊýµÄ·µ»ØÐÅÏ¢ÒÔÌṩ¸ü¿ìµÄÐÔÄÜ¡£È»¶øÔÚijЩÇé¿öÏ£¬Äã¿ÉÄÜÏëÇå³ý±»»º´æµÄÐÅÏ¢¡£ÀýÈçÈç¹ûÔÚÒ»¸ö½Å±¾Öжà´Î¼ì²éͬһ¸öÎļþ£¬¶ø¸ÃÎļþÔڴ˽ű¾Ö´ÐÐÆÚ¼äÓб»É¾³ý»òÐ޸ĵÄΣÏÕʱ£¬ÄãÐèÒªÇå³ýÎļþ״̬»º´æ¡£ÕâÖÖÇé¿öÏ£¬¿ÉÒÔÓà <function>clearstatcache</function> º¯ÊýÀ´Çå³ý±» PHP »º´æµÄ¸ÃÎļþÐÅÏ¢¡£ </para> <note> <para> ±¾º¯Êý»º´æÌض¨ÎļþÃûµÄÐÅÏ¢£¬Òò´ËÖ»ÔÚ¶Ôͬһ¸öÎļþÃû½øÐжà´Î²Ù×÷²¢ÇÒÐèÒª¸ÃÎļþÐÅÏ¢²»±»»º´æÊ±²ÅÐèÒªµ÷Óà <function>clearstatcache</function>¡£ </para> </note> <para> ÊÜÓ°ÏìµÄº¯Êý°üÀ¨ <function>stat</function>£¬<function>lstat</function>£¬<function>file_exists</function>£¬<function>is_writable</function>£¬<function>is_readable</function>£¬<function>is_executable</function>£¬<function>is_file</function>£¬<function>is_dir</function>£¬<function>is_link</function>£¬<function>filectime</function>£¬<function>fileatime</function>£¬<function>filemtime</function>£¬<function>fileinode</function>£¬<function>filegroup</function>£¬<function>fileowner</function>£¬<function>filesize</function>£¬<function>filetype</function> ºÍ <function>fileperms</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.doc.zh (#629) next »