cvs: phpdoc-zh /appendices wrappers.xml
| From: | Dallas Thunder | Date: | Fri, 27 Sep 2002 22:57:05 +0000 |
| Subject: | cvs: phpdoc-zh /appendices wrappers.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-661@lists.php.net to get a copy of this message | ||
dallas Fri Sep 27 18:57:05 2002 EDT
Modified files:
/phpdoc-zh/appendices wrappers.xml
Log:
Done.
Index: phpdoc-zh/appendices/wrappers.xml
diff -u phpdoc-zh/appendices/wrappers.xml:1.2 phpdoc-zh/appendices/wrappers.xml:1.3
--- phpdoc-zh/appendices/wrappers.xml:1.2 Thu Sep 26 23:46:22 2002
+++ phpdoc-zh/appendices/wrappers.xml Fri Sep 27 18:57:04 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- $Author: dallas $ -->
<!-- EN-Revision:1.3 Maintainer: dallas Status: ready -->
<appendix id="wrappers">
@@ -34,19 +34,17 @@
×Ô PHP 4.0.5 ÆðÖ§³ÖÖØ¶¨Ïò¡£Èç¹ûʹÓýÏÔç°æ±¾µÄ PHP
ÔòÐèÒªÔÚ URL ĩβ°üÀ¨Ò»¸öбÏß¡£
</simpara>
<simpara>
- The stream allows access to the <emphasis>body</emphasis> of
- the resource; the headers are stored in the
- <parameter>$http_response_header</parameter> variable.
- Since PHP 4.3, the headers are available using
- <function>file_get_meta_data</function>.
+
Á÷ÔÊÐí·ÃÎÊ×ÊÔ´µÄ<emphasis>ÕýÎÄ</emphasis>£¬±¨Í·²¿·Ö±£´æÔÚ
+ <parameter>$http_response_header</parameter> ±äÁ¿ÖС£×Ô
+ PHP 4.3 Æð£¬¿ÉÒÔÓÃ
+ <function>file_get_meta_data</function> µÃµ½±¨Í·¡£
</simpara>
<simpara>
- HTTP connections are read-only; you cannot write data or copy
- files to an HTTP resource.
+ HTTP Á¬½ÓÊÇÖ»¶ÁµÄ£¬²»Äܽ«Êý¾ÝдÈë»òÕß¿½±´Îļþµ½ HTTP
×ÊÔ´¡£
</simpara>
<note>
- <simpara>HTTPS is supported starting from PHP 4.3, if you
- have compiled in support for OpenSSL.
+ <simpara>
+ ×Ô PHP 4.3 Æð¿ªÊ¼Ö§³Ö HTTPS£¬ÐèÒªÔÚ±àÒëʱ¼ÓÈë OpenSSL
µÄÖ§³Ö¡£
</simpara>
</note>
</section>
@@ -63,34 +61,30 @@
</itemizedlist>
<simpara>
- Allows read access to existing files and creation of new files
- via FTP. If the server does not support passive mode ftp, the
- connection will fail.
- </simpara>
- <simpara>
- You can open files for either reading or writing, but not both
- simultaneously. If the remote file already exists on the ftp
- server and you attempt to open it for writing, the connection
- will fail. If you need to update existing files over ftp,
- use <function>ftp_connect</function>.
- </simpara>
- <simpara>
- ftps:// was introduced in PHP 4.3. It is the same as ftp://,
- but attempts to negotiate a secure connection with the ftp server.
- If the server does not support SSL, then the connection falls back
- to regular unencrypted ftp.
+ ÔÊÐí¶ÔÒÑÓÐÎļþ½øÐÐÖ»¶Á·ÃÎÊÒÔ¼°Í¨¹ý FTP
½¨Á¢ÐÂÎļþ¡£Èç¹û·þÎñÆ÷²»Ö§³Ö±»¶¯Ä£Ê½µÄ
+ ftp£¬ÔòÁ¬½Ó»áʧ°Ü¡£
+ </simpara>
+ <simpara>
+
¿ÉÒÔÓöÁ»òÕßдµÄ·½Ê½´ò¿ªÎļþ£¬µ«²»ÄÜͬʱÊǶÁд¡£Èç¹û
ftp
+
·þÎñÆ÷ÉÏÒѾ´æÔÚÔ¶³ÌÎļþ¶øÄãÊÔͼÓÃдµÄ·½Ê½´ò¿ª£¬ÔòÁ¬½Ó»áʧ°Ü¡£Èç¹ûÄãÏëͨ¹ý
+ ftp ¸üÐÂÒÑÓеÄÎļþ£¬Óà <function>ftp_connect</function>¡£
+ </simpara>
+ <simpara>
+ ftps:// ÊÇ PHP 4.3 Òý½øµÄ¡£ËüºÍ ftp://
Ïàͬ£¬µ«Êdz¢ÊÔºÍ
+ ftp ·þÎñÆ÷½¨Á¢Ò»¸ö°²È«Á¬½Ó¡£Èç¹û·þÎñÆ÷²»Ö§³Ö
SSL£¬Ôò»á·µ»ØÒ»¸öÆÕͨµÄδ¼ÓÃܵÄ
+ ftp Á¬½Ó¡£
</simpara>
<note>
- <simpara>FTPS is supported starting from PHP 4.3, if you
- have compiled in support for OpenSSL.
+ <simpara>
+ ×Ô PHP 4.3 Æð¿ªÊ¼Ö§³Ö FTPS£¬ÐèÒªÔÚ±àÒëʱ¼ÓÈë OpenSSL
µÄÖ§³Ö¡£
</simpara>
</note>
</section>
<section id="wrappers.php">
- <title>PHP input/output streams</title>
- <simpara>PHP 3.0.13 and up, php://output since PHP 4.3</simpara>
+ <title>PHP ÊäÈ룯Êä³öÁ÷</title>
+ <simpara>PHP 3.0.13 ¼°ÒÔÉϰ汾£¬×Ô PHP 4.3 ÆðÖ§³Ö
php://output</simpara>
<itemizedlist>
<listitem><simpara>php://stdin</simpara></listitem>
@@ -100,24 +94,23 @@
</itemizedlist>
<simpara>
- php://stdin, php://stdout and php://stderr allow access to
- the corresponding input or output stream of the PHP process.
+ php://stdin£¬php://stdout ºÍ php://stderr ÔÊÐí·ÃÎÊ
+ PHP ½ø³ÌÏàÓ¦µÄÊäÈë»òÕßÊä³öÁ÷¡£
</simpara>
<simpara>
- php://output allows you to write to the output buffer mechanism
- in the same way as <function>print</function> and
- <function>echo</function>.
+ php://output ÔÊÐíÏòÊä³ö»º³å»úÖÆÐ´ÈëÊý¾Ý£¬ºÍ
+ <function>print</function> Óë <function>echo</function>
µÄ·½Ê½Ïàͬ¡£
</simpara>
<simpara>
- php://stdin is read-only, whereas php://stdout, php://stderr
- and php://output are write-only.
+ php://stdin ÊÇÖ»¶ÁµÄ£¬·´Ö® php://stdout£¬php://stderr
+ ºÍ php://output ÊÇֻдµÄ¡£
</simpara>
</section>
<section id="wrappers.compression">
- <title>Compression Streams</title>
- <simpara>zlib: PHP 4.0.4 - PHP 4.2.3 (systems with fopencookie only)</simpara>
- <simpara>compress.zlib:// and compress.bzip2:// PHP 4.3 and up</simpara>
+ <title>ѹËõÁ÷</title>
+ <simpara>zlib: PHP 4.0.4 - PHP 4.2.3£¨½öÓÃÓÚ´ø fopencookie
µÄϵͳ£©</simpara>
+ <simpara>PHP 4.3 ¼°ÒÔÉϰ汾֧³Ö compress.zlib:// ºÍ
compress.bzip2://</simpara>
<itemizedlist>
<listitem><simpara>zlib:</simpara></listitem>
@@ -126,17 +119,15 @@
</itemizedlist>
<simpara>
- zlib: works like <function>gzopen</function>, except that the
- stream can be used with <function>fread</function> and the other
- filesystem functions. This is deprecated as of PHP 4.3 due
- to ambiguities with filenames containing ':' characters; use
- compress.zlib:// instead.
+ zlib: ºÍ <function>gzopen</function>
µÄ¹¤×÷·½Ê½ÏàÏó£¬Ö»³ýÁËÁ÷¿ÉÒÔÓÃÓÚ
+ <function>fread</function> ºÍÆäËüÎļþϵͳº¯Êý¡£×Ô PHP 4.3
+
ÆðÒѲ»ÔÞ³ÉʹÓã¬ÒòΪ¿ÉÄÜ»áºÍ°üº¬ÓС°:¡±×Ö·ûµÄÎļþÃû»ìÏý£¬ÓÃ
compress.zlib:// ´úÌæ¡£
</simpara>
<simpara>
- compress.zlib:// and compress.bzip2:// are equivalent to
- <function>gzopen</function> and <function>bzopen</function>
respectively,
- and operate even on systems that do not support fopencookie.
+ compress.zlib:// ºÍ compress.bzip2:// ¸÷×ÔµÈͬÓÚ
+ <function>gzopen</function> ºÍ
<function>bzopen</function>£¬²¢ÇÒ¿ÉÒÔÔÚ²»Ö§³Ö
+ fopencookie µÄϵͳÖÐʹÓá£
</simpara>
</section>
</appendix>