wez             Sun Jan 19 05:46:22 2003 EDT

  Modified files:              
    /phpdoc/en/reference/stream reference.xml 
  Log:
  Minor alterations:
  - PHP implements HTTP 1.0, not 1.1
  - ssl and tls are not wrappers; they are socket "transports" recognized
    only by fsockopen.
  - always use "wb" or "rb" when opening files so that win32 lusers
    don't post bug reports when their binary data gets munched by the (D)OS.
  
  
Index: phpdoc/en/reference/stream/reference.xml
diff -u phpdoc/en/reference/stream/reference.xml:1.7 
phpdoc/en/reference/stream/reference.xml:1.8
--- phpdoc/en/reference/stream/reference.xml:1.7        Wed Jan 15 18:51:25 2003
+++ phpdoc/en/reference/stream/reference.xml    Sun Jan 19 05:46:22 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
  <reference id="ref.stream">
   <title>Stream functions</title>
   <titleabbrev>Streams</titleabbrev>
@@ -21,7 +21,7 @@
     <simpara>
      A <literal>wrapper</literal> is additional code which tells the stream how to 
handle
      specific protocols/encodings.  For example, the <literal>http</literal>
-     wrapper knows how to translate a URL into an <literal>HTTP/1.1</literal>
+     wrapper knows how to translate a URL into an <literal>HTTP/1.0</literal>
      request for a file on a remote server.  There are many wrappers
      built into <literal>PHP</literal> by default (See <xref linkend="wrappers"/>),
      and additional, custom wrappers may be added either within a
@@ -35,7 +35,7 @@
      A <literal>filter</literal> is a final piece of code which may perform
      opperations on data as it is being read from or written to a stream.
      Any number of filters may be stacked onto a stream. Custom
-        filters can be defined in a <literal>PHP</literal> script using
+     filters can be defined in a <literal>PHP</literal> script using
      <function>stream_register_filter</function> or in an extension using the
      API Reference in <xref linkend="streams"/>.  To access the list of currently 
      registered filters, use <function>stream_get_filters</function>.
@@ -47,7 +47,7 @@
        <simpara>
         <parameter>scheme</parameter>(string) -
         The name of the wrapper to be used.  Examples include: file, 
-        http, https, ftp, ftps, compress.zlib, compress.bz2, ssl, tls, and php.  See 
+        http, https, ftp, ftps, compress.zlib, compress.bz2, and php.  See 
         <xref linkend="wrappers"/> for a list of PHP builtin wrappers.  If
         no wrapper is specified, the function default is used (typically
         <literal>file</literal>://).
@@ -225,7 +225,7 @@
  * File can be read back using compress.zlib stream or just
  * decompressed from the command line using 'gzip -d foo-bar.txt.gz'
  */
-$fp = fopen("compress.zlib://foo-bar.txt.gz","w");
+$fp = fopen("compress.zlib://foo-bar.txt.gz","wb");
 if (!$fp) die("Unable to create file.");
 
 fwrite($fp, "This is a test.\n");



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to