cvs: phpdoc-zh /reference/filesystem/functions file-get-contents.xml

From: Date: Tue, 16 Aug 2005 05:42:27 +0000
Subject: cvs: phpdoc-zh /reference/filesystem/functions file-get-contents.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2319@lists.php.net to get a copy of this message
lm92 Tue Aug 16 01:42:27 2005 EDT Modified files: /phpdoc-zh/reference/filesystem/functions file-get-contents.xml Log: updated to en version http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/file-get-contents.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/reference/filesystem/functions/file-get-contents.xml diff -u phpdoc-zh/reference/filesystem/functions/file-get-contents.xml:1.5 phpdoc-zh/reference/filesystem/functions/file-get-contents.xml:1.6 --- phpdoc-zh/reference/filesystem/functions/file-get-contents.xml:1.5 Mon Aug 18 16:51:02 2003 +++ phpdoc-zh/reference/filesystem/functions/file-get-contents.xml Tue Aug 16 01:42:26 2005 @@ -1,39 +1,93 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: dallas $ --> -<!-- EN-Revision: 1.10 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- $Author: lm92 $ --> +<!-- EN-Revision: 1.24 Maintainer: dallas Status: ready --> <refentry id="function.file-get-contents"> <refnamediv> <refname>file_get_contents</refname> <refpurpose>½«Õû¸öÎļþ¶ÁÈëÒ»¸ö×Ö·û´®</refpurpose> </refnamediv> - <refsect1> - <title>˵Ã÷</title> + <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>int</type><parameter>use_include_path</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> ½«Îļþ·µ»ØÎªÒ»¸ö×Ö·û´®¡£ + <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.bin-safe; - &tip.fopen-wrapper; <note> <simpara> - Context Ö§³ÖÊÇ <literal>PHP 5.0.0</literal> мӵġ£ + Èç¹ûÒª´ò¿ªÓÐÌØÊâ×Ö·ûµÄ URL £¨±ÈÈç˵Óпոñ£©£¬¾ÍÐèҪʹÓà + <function>urlencode</function> ½øÐÐ URL ±àÂë¡£ </simpara> </note> - <simpara> - ²Î¼û <function>fgets</function>£¬<function>file</function>£¬<function>fread</function>£¬<function>include</function> - ºÍ <function>readfile</function>¡£ - </simpara> + <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="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>

« previous php.doc.zh (#2319) next »