cvs: phpdoc-zh /appendices wrappers.xml
| From: | Dallas Thunder | Date: | Thu, 01 May 2003 03:59:41 +0000 |
| Subject: | cvs: phpdoc-zh /appendices wrappers.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1396@lists.php.net to get a copy of this message | ||
dallas Wed Apr 30 23:59:41 2003 EDT
Modified files:
/phpdoc-zh/appendices wrappers.xml
Log:
Updated.
Index: phpdoc-zh/appendices/wrappers.xml
diff -u phpdoc-zh/appendices/wrappers.xml:1.12 phpdoc-zh/appendices/wrappers.xml:1.13
--- phpdoc-zh/appendices/wrappers.xml:1.12 Tue Apr 22 23:48:48 2003
+++ phpdoc-zh/appendices/wrappers.xml Wed Apr 30 23:59:41 2003
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
<!-- $Author: dallas $ -->
-<!-- EN-Revision:1.13 Maintainer: dallas Status: ready -->
+<!-- EN-Revision:1.16 Maintainer: dallas Status: ready -->
<appendix id="wrappers">
<title>Ö§³ÖµÄÐÒ飯·â×°ÐÒéÁбí</title>
<para>
@@ -49,19 +49,20 @@
</note>
<para>
<table>
- <title>Context Ñ¡Ï×Ô <literal>PHP 5.0</literal>
Æð£©</title>
+ <title>ÉÏÏÂÎÄÑ¡Ïcontext option£¬×Ô <literal>PHP
5.0</literal> Æð£©</title>
<tgroup cols="3">
<thead>
<row>
<entry>Ãû³Æ</entry>
<entry>Ó÷¨</entry>
+ <entry>ĬÈÏÖµ</entry>
</row>
</thead>
<tbody>
<row>
<entry><literal>method</literal></entry>
- <entry><constant>GET</constant> »ò
<constant>POST</constant>£¨Ä¬ÈÏΪ <constant>GET</constant>£©¡£
- </entry>
+ <entry><constant>GET</constant> »ò
<constant>POST</constant></entry>
+ <entry><constant>GET</constant></entry>
</row>
<row>
<entry><literal>header</literal></entry>
@@ -70,17 +71,41 @@
<literal>User-agent:</literal>£¬<literal>Host:</literal> ºÍ
<literal>Authentication:</literal>£©¡£
</entry>
+ <entry></entry>
+ </row>
+ <row>
+ <entry><literal>user_agent</literal></entry>
+ <entry>
+ ÔÚ User-Agent:
Í·ÐÅÏ¢ÖÐÒª·¢Ë͵ÄÖµ¡£´ËÖµ½öÓÃÓÚ<emphasis>ûÓÐ</emphasis>ÔÚÉÏÃæ
+ <literal>header</literal> µÄÉÏÏÂÎÄÑ¡ÏîÖÐÖ¸¶¨ user-agent
ʱ¡£
+ </entry>
+ <entry>
+ <literal>php.ini</literal>
ÉèÖãº<literal>user_agent</literal>
+ </entry>
</row>
<row>
<entry><literal>content</literal></entry>
<entry>
Í·ÐÅÏ¢Ö®ºóÒª·¢Ë͵ĸ½¼ÓÊý¾Ý¡£µäÐÍÓÃÓÚ POST ÇëÇó¡£
</entry>
+ <entry></entry>
</row>
</tbody>
</tgroup>
</table>
</para>
+
+ <note>
+ <title>µ×²ãµÄÌ×½Ó×ÖÁ÷£¨socket stream£©ÉÏÏÂÎÄÑ¡Ïî</title>
+ <simpara>
+ ÓпÉÄÜͨ¹ý<link
+ linkend="transports.inet">µ×²ã´«Ê䣨underlying
transport£©</link>Ö§³Ö¸½¼ÓµÄÉÏÏÂÎÄÑ¡Ïî¡£¶ÔÓÚ
+ <literal>http://</literal> Á÷£¬²Î¿¼
+ <literal>tcp://</literal> ´«ÊäµÄÉÏÏÂÎÄÑ¡Ïî¡£¶ÔÓÚ
+ <literal>https://</literal> Á÷£¬²Î¿¼
+ <literal>ssl://</literal> ´«ÊäµÄÉÏÏÂÎÄÑ¡Ïî¡£
+ </simpara>
+ </note>
</section>
<section id="wrappers.ftp">
@@ -100,9 +125,20 @@
</simpara>
<simpara>
¿ÉÒÔÓöÁ»òÕßдµÄ·½Ê½´ò¿ªÎļþ£¬µ«²»ÄÜͬʱÊǶÁд¡£Èç¹û
ftp
-
·þÎñÆ÷ÉÏÒѾ´æÔÚÔ¶³ÌÎļþ¶øÄãÊÔͼÓÃдµÄ·½Ê½´ò¿ª£¬ÔòÁ¬½Ó»áʧ°Ü¡£Èç¹ûÄãÏëͨ¹ý
- ftp ¸üÐÂÒÑÓеÄÎļþ£¬Óà <function>ftp_connect</function>¡£
+
·þÎñÆ÷ÉÏÒѾ´æÔÚÔ¶³ÌÎļþ¶øÄãÊÔͼÓÃдµÄ·½Ê½´ò¿ªµ«ÓÖûÓÐÖ¸¶¨
+ <literal>overwrite</literal>
µÄÉÏÏÂÎÄÑ¡ÏÔòÁ¬½Ó»áʧ°Ü¡£Èç¹ûÄãÏëͨ¹ý
+ ftp ¸üÐÂÒÑÓеÄÎļþ£¬ÔòÔÚÉÏÏÂÎÄÖÐÖ¸¶¨
+ <literal>overwrite</literal>
Ñ¡Ïî²¢ÓÃдµÄ·½Ê½´ò¿ª¡£»¹¿ÉÒÔÓÃ
+ <link linkend="ref.ftp">FTP À©Õ¹</link>¡£
</simpara>
+ <note>
+ <title>×·¼ÓÎļþ</title>
+ <simpara>
+ ×Ô <literal>PHP 5.0</literal> Æð¿ÉÒÔͨ¹ý
+ <literal>ftp://</literal> url
ÐÒéÀ´×·¼ÓÎļþ¡£ÔÚ֮ǰµÄ°æ±¾ÊÔͼͨ¹ý
+ <literal>ftp://</literal>
À´×·¼ÓÎļþ»áµ¼ÖÂʧ°Ü¡£
+ </simpara>
+ </note>
<simpara>
<filename>ftps://</filename> ÊÇ PHP 4.3 Òý½øµÄ¡£ËüºÍ
<filename>ftp://</filename>
Ïàͬ£¬µ«Êdz¢ÊÔºÍ
ftp ·þÎñÆ÷½¨Á¢Ò»¸ö°²È«Á¬½Ó¡£Èç¹û·þÎñÆ÷²»Ö§³Ö
SSL£¬Ôò»á·µ»ØÒ»¸öÆÕͨµÄδ¼ÓÃܵÄ
@@ -115,25 +151,36 @@
</note>
<para>
<table>
- <title>Context Ñ¡Ï×Ô <literal>PHP 5.0</literal>
Æð£©</title>
+ <title>ÉÏÏÂÎÄÑ¡Ï×Ô <literal>PHP 5.0</literal>
Æð£©</title>
<tgroup cols="3">
<thead>
<row>
<entry>Ãû³Æ</entry>
<entry>Ó÷¨</entry>
+ <entry>ĬÈÏÖµ</entry>
</row>
</thead>
<tbody>
<row>
<entry><literal>overwrite</literal></entry>
- <entry>
-
ÔÊÐí¸²¸ÇÔ¶³Ì·þÎñÆ÷ÉÏÒÑ´æÔÚµÄÎļþ¡£Ä¬ÈÏΪ½ûÓá£
- </entry>
+
<entry>ÔÊÐí¸²¸ÇÔ¶³Ì·þÎñÆ÷ÉÏÒÑ´æÔÚµÄÎļþ¡£</entry>
+ <entry>&false;£¨½ûÓã©</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
+ <note>
+ <title>µ×²ãÌ×½Ó×ÖÁ÷ÉÏÏÂÎÄÑ¡ÏUnderlying socket stream context
options£©</title>
+ <simpara>
+ ÓпÉÄÜͨ¹ý<link
+ linkend="transports.inet">µ×²ã´«Ê䣨underlying
transport£©</link>Ö§³Ö¸½¼ÓµÄÉÏÏÂÎÄÑ¡Ïî¡£¶ÔÓÚ
+ <literal>ftp://</literal> Á÷£¬²Î¿¼
+ <literal>tcp://</literal> ´«ÊäµÄÉÏÏÂÎÄÑ¡Ïî¡£¶ÔÓÚ
+ <literal>ftps://</literal> Á÷£¬²Î¿¼
+ <literal>ssl://</literal> ´«ÊäµÄÉÏÏÂÎÄÑ¡Ïî¡£
+ </simpara>
+ </note>
</section>