cvs: phpdoc-zh /reference/filesystem/functions file-put-contents.xml lstat.xml mkdir.xml move-uploaded-file.xml parse-ini-file.xml pathinfo.xml
pclose.xml popen.xml readfile.xml readlink.xml
| From: | Dallas Thunder | Date: | Thu, 24 Apr 2003 01:37:31 +0000 |
| Subject: | cvs: phpdoc-zh /reference/filesystem/functions file-put-contents.xml lstat.xml mkdir.xml move-uploaded-file.xml parse-ini-file.xml pathinfo.xml pclose.xml popen.xml readfile.xml readlink.xml |
||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1383@lists.php.net to get a copy of this message | ||
dallas Wed Apr 23 21:37:31 2003 EDT
Added files:
/phpdoc-zh/reference/filesystem/functions file-put-contents.xml
Modified files:
/phpdoc-zh/reference/filesystem/functions lstat.xml mkdir.xml
move-uploaded-file.xml
parse-ini-file.xml
pathinfo.xml pclose.xml
popen.xml readfile.xml
readlink.xml
Log:
Translation completed.
Index: phpdoc-zh/reference/filesystem/functions/lstat.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/lstat.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/lstat.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> + <refentry id="function.lstat"> + <refnamediv> + <refname>lstat</refname> + <refpurpose>¸ø³öÒ»¸öÎļþ»ò·ûºÅÁ¬½ÓµÄÐÅÏ¢</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>array</type><methodname>lstat</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + »ñÈ¡ÓÉ <parameter>filename</parameter> Ö¸¶¨µÄÎļþ»ò·ûºÅÁ¬½ÓµÄͳ¼ÆÐÅÏ¢¡£±¾º¯ÊýºÍ + <function>stat</function> º¯ÊýÏàͬ£¬Ö»³ýÁËÈç¹û + <parameter>filename</parameter> ²ÎÊýÊÇ·ûºÅÁ¬½ÓµÄ»°£¬Ôò¸Ã·ûºÅÁ¬½ÓµÄ״̬±»·µ»Ø£¬¶ø²»ÊǸ÷ûºÅÁ¬½ÓËùÖ¸ÏòµÄÎļþµÄ״̬¡£ + </para> + <para> + ·µ»ØÒ»¸öÊý×é°üº¬ÓÐÎļþµÄͳ¼ÆÐÅÏ¢¡£¸ÃÊý×é¾ßÓÐÒÔϵ¥Ôª£º + <orderedlist> + <listitem><simpara>device - É豸Ãû</simpara></listitem> + <listitem><simpara>inode - ½ÚµãÃû</simpara></listitem> + <listitem><simpara>inode protection mode - ½Úµã±£»¤Ä£Ê½</simpara></listitem> + <listitem><simpara>number of links - Á¬½ÓÊýÄ¿</simpara></listitem> + <listitem><simpara>user id of owner - ËùÓÐÕßµÄÓû§ id</simpara></listitem> + <listitem><simpara>group id owner - ËùÓÐÕßµÄ×é id</simpara></listitem> + <listitem><simpara>device type if inode device *</simpara></listitem> + <listitem><simpara>size in bytes - Îļþ´óСµÄ×Ö½ÚÊý</simpara></listitem> + <listitem><simpara>time of last access - ÉÏÒ»´Î±»·ÃÎÊʱ¼ä</simpara></listitem> + <listitem><simpara>time of last modification - ÉÏÒ»´Î±»ÐÞ¸Äʱ¼ä</simpara></listitem> + <listitem><simpara>time of last change - ÉÏÒ»´Î¸Ä±äʱ¼ä</simpara></listitem> + <listitem><simpara>blocksize for filesystem I/O *</simpara></listitem> + <listitem><simpara>number of blocks allocated - Ëù·ÖÅä¿éµÄÊýÄ¿</simpara></listitem> + </orderedlist> + * - ½öÔÚÖ§³Ö st_blksize ÀàÐ͵ÄϵͳÏÂÓÐЧ¡£ÆäËüϵͳ£¨Èç Windows£©·µ»Ø -1¡£ + </para> + + ¬e.clearstatcache; + + ¬e.no-remote; + + <simpara> + ²Î¼û <function>stat</function>¡£ + </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 +--> Index: phpdoc-zh/reference/filesystem/functions/mkdir.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/mkdir.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/mkdir.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> + <refentry id="function.mkdir"> + <refnamediv> + <refname>mkdir</refname> + <refpurpose>н¨Ä¿Â¼</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>int</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> Ò³Ãæ¡£ + <informalexample> + <programlisting role="php"> +<![CDATA[ +mkdir ("/path/to/my/dir", 0700); +]]> + </programlisting> + </informalexample> + </para> + <para> + &return.success; + </para> + <para> + ²Î¼û <function>rmdir</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/move-uploaded-file.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/move-uploaded-file.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/move-uploaded-file.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,76 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 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> + ¬e.sm.uidcheck; + <note> + <para> + <function>move_uploaded_file</function> ²»»áÊܵ½Õý³£µÄ&safemode; UID + ÏÞÖÆ¡£µ«Õâ²»»á²»°²È«£¬ÒòΪ + <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: +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/parse-ini-file.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/parse-ini-file.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/parse-ini-file.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,153 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.12 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> + <simpara> + ÓÐЩ±£Áô×Ö²»ÄÜ×÷Ϊ ini ÎļþÖеļüÃû£¬°üÀ¨£ºyes£¬no£¬true ºÍ false¡£ + </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 + +[first_section] +one = 1 +five = 5 +animal = BIRD + +[second_section] +path = /usr/local/bin +URL = "http://www.example.com/~username" +]]> + </programlisting> + </example> + </para> + <para> + <example> + <title><function>parse_ini_file</function> Àý×Ó</title> + <programlisting> +<![CDATA[ +<?php + +define ('BIRD', 'Dodo bird'); + +// Parse without sections +$ini_array = parse_ini_file("sample.ini"); +print_r($ini_array); + +// Parse with sections +$ini_array = parse_ini_file("sample.ini", TRUE); +print_r($ini_array); + +?> +]]> + </programlisting> + </example> + </para> + <para> + Would produce: + <informalexample> + <programlisting> +<![CDATA[ +Array +( + [one] => 1 + [five] => 5 + [animal] => Dodo bird + [path] => /usr/local/bin + [URL] => http://www.example.com/~username +) +Array +( + [first_section] => Array + ( + [one] => 1 + [five] => 5 + [animal] = Dodo bird + ) + + [second_section] => Array + ( + [path] => /usr/local/bin + [URL] => http://www.example.com/~username + ) + +) +]]> + </programlisting> + </informalexample> + </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/pathinfo.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/pathinfo.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/pathinfo.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 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> + </methodsynopsis> + <para> + <function>pathinfo</function> ·µ»ØÒ»¸ö½áºÏÊý×é°üº¬ÓÐ <parameter>path</parameter> + µÄÐÅÏ¢¡£°üÀ¨ÒÔϵÄÊý×éµ¥Ôª£º<parameter>dirname</parameter>£¬<parameter>basename</parameter> + ºÍ <parameter>extension</parameter>¡£ + </para> + <para> + <example> + <title><function>pathinfo</function> Àý×Ó</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$path_parts = pathinfo("/www/htdocs/index.html"); + +echo $path_parts["dirname"] . "\n"; +echo $path_parts["basename"] . "\n"; +echo $path_parts["extension"] . "\n"; + +?> +]]> + </programlisting> + </example> + </para> + <para> + ½«Êä³ö£º + <informalexample> + <programlisting> +<![CDATA[ +/www/htdocs +index.html +html +]]> + </programlisting> + </informalexample> + </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: +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/pclose.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/pclose.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/pclose.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> + <refentry id="function.pclose"> + <refnamediv> + <refname>pclose</refname> + <refpurpose>¹Ø±Õ½ø³ÌÎļþÖ¸Õë</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>int</type><methodname>pclose</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> + </methodsynopsis> + <para> + ¹Ø±ÕÓà + <function>popen</function> ´ò¿ªµÄÖ¸Ïò¹ÜµÀµÄÎļþÖ¸Õë¡£ + </para> + <para> + ÎļþÖ¸Õë±ØÐëÓÐЧ£¬ÇÒ±ØÐëÊdzɹ¦µ÷Óà + <function>popen</function> Ëù·µ»ØµÄ¡£ + </para> + <para> + ·µ»ØÔËÐеĽø³ÌµÄÖÕֹ״̬¡£ + </para> + <para> + ²Î¼û <function>popen</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/popen.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/popen.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/popen.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> + <refentry id="function.popen"> + <refnamediv> + <refname>popen</refname> + <refpurpose>´ò¿ª½ø³ÌÎļþÖ¸Õë</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>resource</type><methodname>popen</methodname> + <methodparam><type>string</type><parameter>command</parameter></methodparam> + <methodparam><type>string</type><parameter>mode</parameter></methodparam> + </methodsynopsis> + <para> + ´ò¿ªÒ»¸öÖ¸Ïò½ø³ÌµÄ¹ÜµÀ£¬¸Ã½ø³ÌÓÉÅÉÉú¸ø¶¨µÄ <parameter>command</parameter> ÃüÁîÖ´Ðжø²úÉú¡£ + </para> + <para> + ·µ»ØÒ»¸öºÍ <function>fopen</function> + Ëù·µ»ØµÄÏàͬµÄÎļþÖ¸Õ룬ֻ²»¹ýËüÊǵ¥ÏòµÄ£¨Ö»ÄÜÓÃÓÚ¶Á»òд£©²¢ÇÒ±ØÐëÓà + <function>pclose</function> À´¹Ø±Õ¡£´ËÖ¸Õë¿ÉÒÔÓÃÓÚ + <function>fgets</function>£¬<function>fgetss</function> ºÍ + <function>fputs</function>¡£ + </para> + <para> + Èç¹û³ö´í·µ»Ø &false;¡£ + </para> + <note> + <para> + Èç¹ûÐèҪ˫ÏòÖ§³Ö£¬Ê¹Óà <function>proc_open</function>¡£ + </para> + </note> + <para> + <example> + <title><function>popen</function> Àý×Ó</title> + <programlisting role="php"> +<![CDATA[ +<?php +$handle = popen ("/bin/ls", "r"); +?> +]]> + </programlisting> + </example> + </para> + <note> + <para> + Èç¹ûδÕÒµ½ÒªÖ´ÐеÄÃüÁ»á·µ»ØÒ»¸öºÏ·¨µÄ×ÊÔ´¡£Õâ¿´ÉÏÈ¥ºÜ¹Ö£¬µ«ÓеÀÀí¡£ËüÔÊÐíÄã·ÃÎÊ + shell ·µ»ØµÄÈκδíÎóÐÅÏ¢£º + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +error_reporting(E_ALL); + +/* ¼ÓÈëÖØ¶¨ÏòÒԵõ½±ê×¼´íÎóÊä³ö stderr¡£ */ +$handle = popen('/path/to/spooge 2>&1', 'r'); +echo "'$handle'; " . gettype($handle) . "\n"; +$read = fread($handle, 2096); +echo $read; +pclose($handle); +?> +]]> + </programlisting> + </informalexample> + </para> + </note> + <para> + ²Î¼û <function>pclose</function>£¬<function>fopen</function> ºÍ + <function>proc_open</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/readfile.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/readfile.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/readfile.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> + <refentry id="function.readfile"> + <refnamediv> + <refname>readfile</refname> + <refpurpose>Êä³öÒ»¸öÎļþ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>int</type><methodname>readfile</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> + </methodsynopsis> + <para> + ¶ÁÈëÒ»¸öÎļþ²¢Ð´Èëµ½Êä³ö»º³å¡£ + </para> + <para> + ·µ»Ø´ÓÎļþÖжÁÈëµÄ×Ö½ÚÊý¡£Èç¹û³ö´í·µ»Ø + &false; ²¢ÇÒ³ý·ÇÊÇÒÔ + @<function>readfile</function> ÐÎʽµ÷Ó㬷ñÔò»áÏÔʾ´íÎóÐÅÏ¢¡£ + </para> + &tip.fopen-wrapper; + <para> + Èç¹ûÒ²ÏëÔÚ + <link linkend="ini.include-path">include_path</link> + ÖÐËÑË÷Îļþ£¬¿ÉÒÔʹÓÿÉÑ¡µÄµÚ¶þ¸ö²ÎÊý²¢½«ÆäÉèΪ &true;¡£ + </para> + <para> + ²Î¼û <function>fpassthru</function>£¬<function>file</function>£¬<function>fopen</function>£¬<function>include</function>£¬<function>require</function>£¬<function>virtual</function> + ºÍ <xref linkend="wrappers"/>¡£ + </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/readlink.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/readlink.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/readlink.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> + <refentry id="function.readlink"> + <refnamediv> + <refname>readlink</refname> + <refpurpose>·µ»Ø·ûºÅÁ¬½ÓÖ¸ÏòµÄÄ¿±ê</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>string</type><methodname>readlink</methodname> + <methodparam><type>string</type><parameter>path</parameter></methodparam> + </methodsynopsis> + <para> + <function>readlink</function> ºÍͬÃûµÄ C + º¯Êý×öͬÑùµÄÊ£¬·µ»Ø·ûºÅÁ¬½ÓµÄÄÚÈÝ¡£Èç¹û³ö´í·µ»Ø 0¡£ + </para> + <para> + ²Î¼û <function>is_link</function>£¬<function>symlink</function> ºÍ + <function>linkinfo</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/file-put-contents.xml +++ phpdoc-zh/reference/filesystem/functions/file-put-contents.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.1 Maintainer: dallas Status: ready --> <refentry id="function.file-put-contents"> <refnamediv> <refname>file_put_contents</refname> <refpurpose>½«Ò»¸ö×Ö·û´®Ð´ÈëÎļþ</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>int</type><methodname>file_put_contents</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam><type>string</type><parameter>data</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> </methodsynopsis> <simpara> ºÍ³É¹¦µ÷Óà <function>fopen</function>£¬<function>fwrite</function> ºÍ <function>fclose</function> ¹¦ÄÜÒ»Ñù¡£ </simpara> <simpara> <parameter>flags</parameter> ¿ÉÒÔÊÇ <constant>FILE_USE_INCLUDE_PATH</constant> ºÍ/»ò <constant>FILE_APPEND</constant>£¬µ«ÊÇʹÓà <constant>FILE_USE_INCLUDE_PATH</constant> Ñ¡ÏîʱҪ¶à¼ÓСÐÄ¡£ </simpara> ¬e.bin-safe; &tip.fopen-wrapper; <simpara> ²Î¼û <function>fopen</function>£¬<function>fwrite</function>£¬<function>fclose</function> ºÍ <function>file_get_contents</function>¡£ </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 -->
Index: phpdoc-zh/reference/filesystem/functions/lstat.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/lstat.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/lstat.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> + <refentry id="function.lstat"> + <refnamediv> + <refname>lstat</refname> + <refpurpose>¸ø³öÒ»¸öÎļþ»ò·ûºÅÁ¬½ÓµÄÐÅÏ¢</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>array</type><methodname>lstat</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + »ñÈ¡ÓÉ <parameter>filename</parameter> Ö¸¶¨µÄÎļþ»ò·ûºÅÁ¬½ÓµÄͳ¼ÆÐÅÏ¢¡£±¾º¯ÊýºÍ + <function>stat</function> º¯ÊýÏàͬ£¬Ö»³ýÁËÈç¹û + <parameter>filename</parameter> ²ÎÊýÊÇ·ûºÅÁ¬½ÓµÄ»°£¬Ôò¸Ã·ûºÅÁ¬½ÓµÄ״̬±»·µ»Ø£¬¶ø²»ÊǸ÷ûºÅÁ¬½ÓËùÖ¸ÏòµÄÎļþµÄ״̬¡£ + </para> + <para> + ·µ»ØÒ»¸öÊý×é°üº¬ÓÐÎļþµÄͳ¼ÆÐÅÏ¢¡£¸ÃÊý×é¾ßÓÐÒÔϵ¥Ôª£º + <orderedlist> + <listitem><simpara>device - É豸Ãû</simpara></listitem> + <listitem><simpara>inode - ½ÚµãÃû</simpara></listitem> + <listitem><simpara>inode protection mode - ½Úµã±£»¤Ä£Ê½</simpara></listitem> + <listitem><simpara>number of links - Á¬½ÓÊýÄ¿</simpara></listitem> + <listitem><simpara>user id of owner - ËùÓÐÕßµÄÓû§ id</simpara></listitem> + <listitem><simpara>group id owner - ËùÓÐÕßµÄ×é id</simpara></listitem> + <listitem><simpara>device type if inode device *</simpara></listitem> + <listitem><simpara>size in bytes - Îļþ´óСµÄ×Ö½ÚÊý</simpara></listitem> + <listitem><simpara>time of last access - ÉÏÒ»´Î±»·ÃÎÊʱ¼ä</simpara></listitem> + <listitem><simpara>time of last modification - ÉÏÒ»´Î±»ÐÞ¸Äʱ¼ä</simpara></listitem> + <listitem><simpara>time of last change - ÉÏÒ»´Î¸Ä±äʱ¼ä</simpara></listitem> + <listitem><simpara>blocksize for filesystem I/O *</simpara></listitem> + <listitem><simpara>number of blocks allocated - Ëù·ÖÅä¿éµÄÊýÄ¿</simpara></listitem> + </orderedlist> + * - ½öÔÚÖ§³Ö st_blksize ÀàÐ͵ÄϵͳÏÂÓÐЧ¡£ÆäËüϵͳ£¨Èç Windows£©·µ»Ø -1¡£ + </para> + + ¬e.clearstatcache; + + ¬e.no-remote; + + <simpara> + ²Î¼û <function>stat</function>¡£ + </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 +--> Index: phpdoc-zh/reference/filesystem/functions/mkdir.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/mkdir.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/mkdir.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> + <refentry id="function.mkdir"> + <refnamediv> + <refname>mkdir</refname> + <refpurpose>н¨Ä¿Â¼</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>int</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> Ò³Ãæ¡£ + <informalexample> + <programlisting role="php"> +<![CDATA[ +mkdir ("/path/to/my/dir", 0700); +]]> + </programlisting> + </informalexample> + </para> + <para> + &return.success; + </para> + <para> + ²Î¼û <function>rmdir</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/move-uploaded-file.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/move-uploaded-file.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/move-uploaded-file.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,76 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 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> + ¬e.sm.uidcheck; + <note> + <para> + <function>move_uploaded_file</function> ²»»áÊܵ½Õý³£µÄ&safemode; UID + ÏÞÖÆ¡£µ«Õâ²»»á²»°²È«£¬ÒòΪ + <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: +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/parse-ini-file.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/parse-ini-file.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/parse-ini-file.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,153 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.12 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> + <simpara> + ÓÐЩ±£Áô×Ö²»ÄÜ×÷Ϊ ini ÎļþÖеļüÃû£¬°üÀ¨£ºyes£¬no£¬true ºÍ false¡£ + </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 + +[first_section] +one = 1 +five = 5 +animal = BIRD + +[second_section] +path = /usr/local/bin +URL = "http://www.example.com/~username" +]]> + </programlisting> + </example> + </para> + <para> + <example> + <title><function>parse_ini_file</function> Àý×Ó</title> + <programlisting> +<![CDATA[ +<?php + +define ('BIRD', 'Dodo bird'); + +// Parse without sections +$ini_array = parse_ini_file("sample.ini"); +print_r($ini_array); + +// Parse with sections +$ini_array = parse_ini_file("sample.ini", TRUE); +print_r($ini_array); + +?> +]]> + </programlisting> + </example> + </para> + <para> + Would produce: + <informalexample> + <programlisting> +<![CDATA[ +Array +( + [one] => 1 + [five] => 5 + [animal] => Dodo bird + [path] => /usr/local/bin + [URL] => http://www.example.com/~username +) +Array +( + [first_section] => Array + ( + [one] => 1 + [five] => 5 + [animal] = Dodo bird + ) + + [second_section] => Array + ( + [path] => /usr/local/bin + [URL] => http://www.example.com/~username + ) + +) +]]> + </programlisting> + </informalexample> + </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/pathinfo.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/pathinfo.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/pathinfo.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 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> + </methodsynopsis> + <para> + <function>pathinfo</function> ·µ»ØÒ»¸ö½áºÏÊý×é°üº¬ÓÐ <parameter>path</parameter> + µÄÐÅÏ¢¡£°üÀ¨ÒÔϵÄÊý×éµ¥Ôª£º<parameter>dirname</parameter>£¬<parameter>basename</parameter> + ºÍ <parameter>extension</parameter>¡£ + </para> + <para> + <example> + <title><function>pathinfo</function> Àý×Ó</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$path_parts = pathinfo("/www/htdocs/index.html"); + +echo $path_parts["dirname"] . "\n"; +echo $path_parts["basename"] . "\n"; +echo $path_parts["extension"] . "\n"; + +?> +]]> + </programlisting> + </example> + </para> + <para> + ½«Êä³ö£º + <informalexample> + <programlisting> +<![CDATA[ +/www/htdocs +index.html +html +]]> + </programlisting> + </informalexample> + </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: +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/pclose.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/pclose.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/pclose.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> + <refentry id="function.pclose"> + <refnamediv> + <refname>pclose</refname> + <refpurpose>¹Ø±Õ½ø³ÌÎļþÖ¸Õë</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>int</type><methodname>pclose</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> + </methodsynopsis> + <para> + ¹Ø±ÕÓà + <function>popen</function> ´ò¿ªµÄÖ¸Ïò¹ÜµÀµÄÎļþÖ¸Õë¡£ + </para> + <para> + ÎļþÖ¸Õë±ØÐëÓÐЧ£¬ÇÒ±ØÐëÊdzɹ¦µ÷Óà + <function>popen</function> Ëù·µ»ØµÄ¡£ + </para> + <para> + ·µ»ØÔËÐеĽø³ÌµÄÖÕֹ״̬¡£ + </para> + <para> + ²Î¼û <function>popen</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/popen.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/popen.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/popen.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> + <refentry id="function.popen"> + <refnamediv> + <refname>popen</refname> + <refpurpose>´ò¿ª½ø³ÌÎļþÖ¸Õë</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>resource</type><methodname>popen</methodname> + <methodparam><type>string</type><parameter>command</parameter></methodparam> + <methodparam><type>string</type><parameter>mode</parameter></methodparam> + </methodsynopsis> + <para> + ´ò¿ªÒ»¸öÖ¸Ïò½ø³ÌµÄ¹ÜµÀ£¬¸Ã½ø³ÌÓÉÅÉÉú¸ø¶¨µÄ <parameter>command</parameter> ÃüÁîÖ´Ðжø²úÉú¡£ + </para> + <para> + ·µ»ØÒ»¸öºÍ <function>fopen</function> + Ëù·µ»ØµÄÏàͬµÄÎļþÖ¸Õ룬ֻ²»¹ýËüÊǵ¥ÏòµÄ£¨Ö»ÄÜÓÃÓÚ¶Á»òд£©²¢ÇÒ±ØÐëÓà + <function>pclose</function> À´¹Ø±Õ¡£´ËÖ¸Õë¿ÉÒÔÓÃÓÚ + <function>fgets</function>£¬<function>fgetss</function> ºÍ + <function>fputs</function>¡£ + </para> + <para> + Èç¹û³ö´í·µ»Ø &false;¡£ + </para> + <note> + <para> + Èç¹ûÐèҪ˫ÏòÖ§³Ö£¬Ê¹Óà <function>proc_open</function>¡£ + </para> + </note> + <para> + <example> + <title><function>popen</function> Àý×Ó</title> + <programlisting role="php"> +<![CDATA[ +<?php +$handle = popen ("/bin/ls", "r"); +?> +]]> + </programlisting> + </example> + </para> + <note> + <para> + Èç¹ûδÕÒµ½ÒªÖ´ÐеÄÃüÁ»á·µ»ØÒ»¸öºÏ·¨µÄ×ÊÔ´¡£Õâ¿´ÉÏÈ¥ºÜ¹Ö£¬µ«ÓеÀÀí¡£ËüÔÊÐíÄã·ÃÎÊ + shell ·µ»ØµÄÈκδíÎóÐÅÏ¢£º + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +error_reporting(E_ALL); + +/* ¼ÓÈëÖØ¶¨ÏòÒԵõ½±ê×¼´íÎóÊä³ö stderr¡£ */ +$handle = popen('/path/to/spooge 2>&1', 'r'); +echo "'$handle'; " . gettype($handle) . "\n"; +$read = fread($handle, 2096); +echo $read; +pclose($handle); +?> +]]> + </programlisting> + </informalexample> + </para> + </note> + <para> + ²Î¼û <function>pclose</function>£¬<function>fopen</function> ºÍ + <function>proc_open</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/readfile.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/readfile.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/readfile.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> + <refentry id="function.readfile"> + <refnamediv> + <refname>readfile</refname> + <refpurpose>Êä³öÒ»¸öÎļþ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>int</type><methodname>readfile</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> + </methodsynopsis> + <para> + ¶ÁÈëÒ»¸öÎļþ²¢Ð´Èëµ½Êä³ö»º³å¡£ + </para> + <para> + ·µ»Ø´ÓÎļþÖжÁÈëµÄ×Ö½ÚÊý¡£Èç¹û³ö´í·µ»Ø + &false; ²¢ÇÒ³ý·ÇÊÇÒÔ + @<function>readfile</function> ÐÎʽµ÷Ó㬷ñÔò»áÏÔʾ´íÎóÐÅÏ¢¡£ + </para> + &tip.fopen-wrapper; + <para> + Èç¹ûÒ²ÏëÔÚ + <link linkend="ini.include-path">include_path</link> + ÖÐËÑË÷Îļþ£¬¿ÉÒÔʹÓÿÉÑ¡µÄµÚ¶þ¸ö²ÎÊý²¢½«ÆäÉèΪ &true;¡£ + </para> + <para> + ²Î¼û <function>fpassthru</function>£¬<function>file</function>£¬<function>fopen</function>£¬<function>include</function>£¬<function>require</function>£¬<function>virtual</function> + ºÍ <xref linkend="wrappers"/>¡£ + </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/readlink.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/readlink.xml:1.3 --- /dev/null Wed Apr 23 21:37:31 2003 +++ phpdoc-zh/reference/filesystem/functions/readlink.xml Wed Apr 23 21:37:31 2003 @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> + <refentry id="function.readlink"> + <refnamediv> + <refname>readlink</refname> + <refpurpose>·µ»Ø·ûºÅÁ¬½ÓÖ¸ÏòµÄÄ¿±ê</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>string</type><methodname>readlink</methodname> + <methodparam><type>string</type><parameter>path</parameter></methodparam> + </methodsynopsis> + <para> + <function>readlink</function> ºÍͬÃûµÄ C + º¯Êý×öͬÑùµÄÊ£¬·µ»Ø·ûºÅÁ¬½ÓµÄÄÚÈÝ¡£Èç¹û³ö´í·µ»Ø 0¡£ + </para> + <para> + ²Î¼û <function>is_link</function>£¬<function>symlink</function> ºÍ + <function>linkinfo</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/file-put-contents.xml +++ phpdoc-zh/reference/filesystem/functions/file-put-contents.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.1 Maintainer: dallas Status: ready --> <refentry id="function.file-put-contents"> <refnamediv> <refname>file_put_contents</refname> <refpurpose>½«Ò»¸ö×Ö·û´®Ð´ÈëÎļþ</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>int</type><methodname>file_put_contents</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam><type>string</type><parameter>data</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> </methodsynopsis> <simpara> ºÍ³É¹¦µ÷Óà <function>fopen</function>£¬<function>fwrite</function> ºÍ <function>fclose</function> ¹¦ÄÜÒ»Ñù¡£ </simpara> <simpara> <parameter>flags</parameter> ¿ÉÒÔÊÇ <constant>FILE_USE_INCLUDE_PATH</constant> ºÍ/»ò <constant>FILE_APPEND</constant>£¬µ«ÊÇʹÓà <constant>FILE_USE_INCLUDE_PATH</constant> Ñ¡ÏîʱҪ¶à¼ÓСÐÄ¡£ </simpara> ¬e.bin-safe; &tip.fopen-wrapper; <simpara> ²Î¼û <function>fopen</function>£¬<function>fwrite</function>£¬<function>fclose</function> ºÍ <function>file_get_contents</function>¡£ </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 -->