cvs: phpdoc-zh /reference/filesystem/functions dirname.xml disk-free-space.xml disk-total-space.xml diskfreespace.xml

From: Date: Tue, 24 Sep 2002 03:50:42 +0000
Subject: cvs: phpdoc-zh /reference/filesystem/functions dirname.xml disk-free-space.xml disk-total-space.xml diskfreespace.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-633@lists.php.net to get a copy of this message
dallas Mon Sep 23 23:50:42 2002 EDT Added files: /phpdoc-zh/reference/filesystem/functions dirname.xml disk-free-space.xml diskfreespace.xml disk-total-space.xml Log: Translation completed. Index: phpdoc-zh/reference/filesystem/functions/dirname.xml +++ phpdoc-zh/reference/filesystem/functions/dirname.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id="function.dirname"> <refnamediv> <refname>dirname</refname> <refpurpose>·µ»ØÂ·¾¶ÖеÄĿ¼²¿·Ö</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>string</type><methodname>dirname</methodname> <methodparam><type>string</type><parameter>path</parameter></methodparam> </methodsynopsis> <para> ¸ø³öÒ»¸ö°üº¬ÓÐÖ¸ÏòÒ»¸öÎļþµÄȫ·¾¶µÄ×Ö·û´®£¬±¾º¯Êý·µ»ØÈ¥µôÎļþÃûºóµÄĿ¼Ãû¡£ </para> <para> ÔÚ Windows ÖУ¬Ð±Ïߣ¨<literal>/</literal>£©ºÍ·´Ð±Ïߣ¨<literal>\</literal>£©¶¼¿ÉÒÔÓÃ×÷·¾¶·Ö¸ô·û¡£ÔÚÆäËü»·¾³ÏÂÊÇбÏߣ¨<literal>/</literal>£©¡£ </para> <para> <example> <title><function>dirname</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ $path = "/etc/passwd"; $file = dirname ($path); // $file is set to "/etc" ]]> </programlisting> </example> </para> <note> <para> ÔÚ PHP 4.0.3 ÖУ¬<function>dirname</function> ±»ÐÞÕýΪ POSIX ¼æÈÝ¡£±¾ÖÊÉϾÍÒâζ×ÅÈç¹ûÔÚ <parameter>path</parameter> ÖÐûÓÐбÏߣ¬Ôò·µ»ØÒ»¸öµã£¨'<literal>.</literal>'£©£¬±íʾµ±Ç°Ä¿Â¼¡£·ñÔò·µ»ØµÄÊÇ°Ñ <parameter>path</parameter> ÖнáβµÄ <literal>/component</literal>£¨×îºóÒ»¸öбÏßÒÔ¼°ºóÃæ²¿·Ö£©È¥µôÖ®ºóµÄ×Ö·û´®¡£×¢ÒâÕâÒâζ×ÅÔÚÀϵĺ¯Êý·µ»ØÒ»¸ö¿Õ×Ö·û´®µÄÇéÐÎÏÂÄãͨ³£´Ó <function>dirname</function> µÃµ½µÄÊÇбÏß»òÕßÒ»¸öµã¡£ </para> </note> <para> ²Î¼û <function>basename</function>£¬<function>pathinfo</function> ºÍ <function>realpath</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/disk-free-space.xml +++ phpdoc-zh/reference/filesystem/functions/disk-free-space.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> <refentry id="function.disk-free-space"> <refnamediv> <refname>disk_free_space</refname> <refpurpose>·µ»ØÄ¿Â¼ÖеĿÉÓÿռä</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>float</type><methodname>disk_free_space</methodname> <methodparam><type>string</type><parameter>directory</parameter></methodparam> </methodsynopsis> <para> ¸ø³öÒ»¸ö°üº¬ÓÐÒ»¸öĿ¼µÄ×Ö·û´®£¬±¾º¯Êý½«¸ù¾ÝÏàÓ¦µÄÎļþϵͳ»ò´ÅÅÌ·ÖÇø·µ»Ø¿ÉÓõÄ×Ö½ÚÊý¡£ </para> <para> <example> <title><function>disk_free_space</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ $df = disk_free_space("/"); // $df °üº¬¸ùĿ¼Ï¿ÉÓõÄ×Ö½ÚÊý ]]> </programlisting> </example> </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/diskfreespace.xml +++ phpdoc-zh/reference/filesystem/functions/diskfreespace.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> <refentry id="function.diskfreespace"> <refnamediv> <refname>diskfreespace</refname> <refpurpose><function>disk_free_space</function> º¯ÊýµÄ±ðÃû</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>float</type><methodname>diskfreespace</methodname> <methodparam><type>string</type><parameter>directory</parameter></methodparam> </methodsynopsis> <para> ÕâÊÇ <function>disk_free_space</function> º¯ÊýÒѲ»±»ÔÞ³ÉʹÓõıðÃû¡£ÇëÓà <function>disk_free_space</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/disk-total-space.xml +++ phpdoc-zh/reference/filesystem/functions/disk-total-space.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 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"> <![CDATA[ $df = disk_total_space("/"); // $df °üº¬ "/" Ŀ¼µÄ´ÅÅÌ´óС ]]> </programlisting> </example> </para> <simpara> ¡¾ÒëÕß×¢¡¿±¾º¯Êý·µ»ØµÄÊǸÃĿ¼ËùÔڵĴÅÅÌ·ÖÇøµÄ×Ü´óС£¬Òò´ËÔÚ¸ø³öͬһ¸ö´ÅÅÌ·ÖÇøµÄ²»Í¬Ä¿Â¼×÷Ϊ²ÎÊýËùµÃµ½µÄ½á¹ûÍêÈ«Ïàͬ¡£ÔÚ UNIX ºÍ Windows 2000 Öж¼Ö§³Ö½«Ò»¸ö´ÅÅÌ·ÖÇø¼ÓÔØÎªÒ»¸ö×ÓĿ¼£¬ÕâʱÕýȷʹÓñ¾º¯Êý¾ÍºÜÓÐÒâÒå¡£ </simpara> </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 (#633) next »