cvs: phpdoc-zh /appendices reserved.constants.core.xml wrappers.xml

From: Date: Thu, 11 Aug 2005 01:24:19 +0000
Subject: cvs: phpdoc-zh /appendices reserved.constants.core.xml wrappers.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2147@lists.php.net to get a copy of this message
dallas Wed Aug 10 21:24:19 2005 EDT Modified files: /phpdoc-zh/appendices reserved.constants.core.xml wrappers.xml Log: Updated. http://cvs.php.net/diff.php/phpdoc-zh/appendices/reserved.constants.core.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-zh/appendices/reserved.constants.core.xml diff -u phpdoc-zh/appendices/reserved.constants.core.xml:1.5 phpdoc-zh/appendices/reserved.constants.core.xml:1.6 --- phpdoc-zh/appendices/reserved.constants.core.xml:1.5 Mon Apr 18 02:41:07 2005 +++ phpdoc-zh/appendices/reserved.constants.core.xml Wed Aug 10 21:24:19 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.5 $ --> -<!-- $Author: class007 $ --> -<!-- EN-Revision: 1.15 Maintainer: class007 Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.17 Maintainer: class007 Status: ready --> <sect2 id="reserved.constants.core"> <title>ÄÚºËÔ¤¶¨Òå³£Á¿</title> <simpara> @@ -32,12 +32,34 @@ </varlistentry> <varlistentry> <term> - <constant>PHP_EOL</constant> + <constant>PHP_EOL</constant> (<type>string</type>) </term> <listitem> <simpara> - Available since PHP 4.3.10 and PHP 5.0.2 + ×Ô PHP 4.3.10 ºÍ PHP 5.0.2 Æð¿ÉÓà + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PHP_INT_MAX</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + ×Ô PHP 4.4.0 ºÍ PHP 5.0.5 Æð¿ÉÓà + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PHP_INT_SIZE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + ×Ô PHP 4.4.0 ºÍ PHP 5.0.5 Æð¿ÉÓà </simpara> </listitem> </varlistentry> @@ -329,8 +351,7 @@ </varlistentry> </variablelist> <para> - ²Î¼û: <link linkend="language.constants.predefined">Magic - ³£Á¿</link>¡£ + ²Î¼û<link linkend="language.constants.predefined">ħÊõ³£Á¿</link>¡£ </para> </sect2> http://cvs.php.net/diff.php/phpdoc-zh/appendices/wrappers.xml?r1=1.24&r2=1.25&ty=u Index: phpdoc-zh/appendices/wrappers.xml diff -u phpdoc-zh/appendices/wrappers.xml:1.24 phpdoc-zh/appendices/wrappers.xml:1.25 --- phpdoc-zh/appendices/wrappers.xml:1.24 Wed Aug 10 16:04:43 2005 +++ phpdoc-zh/appendices/wrappers.xml Wed Aug 10 21:24:19 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.24 $ --> +<!-- $Revision: 1.25 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision:1.50 Maintainer: class007 Status: ready --> +<!-- EN-Revision:1.53 Maintainer: class007 Status: ready --> <!-- CREDITS: dallas --> <appendix id="wrappers"> <title>Ö§³ÖµÄЭÒ飯·âװЭÒéÁбí</title> @@ -94,6 +94,57 @@ </para> </section> + <section id="wrappers.socket"> + <title>Socket</title> + <para> + ±¾½Ú°üº¬Ö§³Ö¿É¹¤×÷ÓÚÌ×½Ó×ֵķâװЭÒéµÄÉÏÏÂÎÄÑ¡ÏÈç + <literal>tcp</literal>£¬<literal>http</literal> »ò <literal>ftp</literal>¡£ + </para> + <para> + ×Ô PHP 5.1.0 ÆðÖ»Ö§³ÖÒ»¸öÑ¡Ï<literal>bindto</literal>£¬¿ÉÓÃÀ´Ö¸¶¨ + IP µØÖ·£¨¿ÉÒÔÊÇ IPv4 »ò IPv6£©ºÍ£¯»ò PHP ½«ÓÃÀ´·ÃÎÊÍøÂçµÄ¶Ë¿ÚºÅ¡£Óï·¨ÊÇ + <literal>ip:port</literal>£¨Èç¹ûÏëÈÃϵͳ×Ô¶¯Ñ¡Ôñ¿ÉÒÔ½« IP »ò¶Ë¿ÚºÅÉèΪ + <literal>0</literal>£©¡£ + </para> + <note> + <para> + Òò FTP ÔÚÕý³£ÔËÐÐʱ´´½¨Á½¸öÌ×½Ó×ÖÁ¬½Ó£¬´Ëʱ²»ÄÜÔÚ + <literal>bindto</literal> Ñ¡ÏîÖÐÖ¸¶¨¶Ë¿ÚºÅ¡£Òò´Ë¶ÔÓÚ + FTP wrapper Ö»Ö§³ÖÒ»ÖÖÓï·¨ <literal>ip:0</literal>¡£ + </para> + </note> + <example> + <title>ÔõÑùʹÓà bindto Ñ¡ÏîµÄһЩÀý×Ó</title> + <programlisting role="php"> +<![CDATA[ +<?php +// connect to the internet using the '192.168.0.100' IP +$opts = array('socket' => + array('bindto' => '192.168.0.100:0')); + + +// connect to the internet using the '192.168.0.100' IP and port '7000' +$opts = array('socket' => + array('bindto' => '192.168.0.100:7000')); + + +// connect to the internet using port '7000' +$opts = array('socket' => + array('bindto' => '0:7000')); + + +// create the context... +$context = stream_context_create($opts); + +// ...and use it to fetch the data +echo file_get_contents('http://www.example.com', false, $context); + +?> +]]> + </programlisting> + </example> + </section> + <section id="wrappers.http"> <title>HTTP ºÍ HTTPS</title> <simpara>PHP 3, PHP 4, PHP 5¡£×Ô PHP 4.3.0 ÆðÖ§³Ö <filename>https://</filename></simpara> @@ -489,8 +540,11 @@ <function>print</function> Óë <function>echo</function> µÄ·½Ê½Ïàͬ¡£ </simpara> <simpara> - <filename>php://input</filename> ÔÊÐíÄú¶ÁÈ¡ POST µÄԭʼÊý¾Ý¡£ - ºÍ <varname>$HTTP_RAW_POST_DATA</varname> ±ÈÆðÀ´£¬Ëü¸øÄÚ´æ´øÀ´µÄѹÁ¦½ÏС£¬²¢ÇÒ²»ÐèÒªÈκÎÌØÊâµÄ &php.ini; ÉèÖᣠ+ <filename>php://input</filename> ÔÊÐíÄú¶ÁÈ¡ POST + µÄԭʼÊý¾Ý¡£ºÍ <varname>$HTTP_RAW_POST_DATA</varname> + ±ÈÆðÀ´£¬Ëü¸øÄÚ´æ´øÀ´µÄѹÁ¦½ÏС£¬²¢ÇÒ²»ÐèÒªÈκÎÌØÊâµÄ &php.ini; + ÉèÖá£<filename>php://input</filename> ²»ÄÜÓÃÓÚ + <literal>enctype="multipart/form-data"</literal>¡£ </simpara> <simpara> <filename>php://stdin</filename> ºÍ

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