nicobn          Sat Aug 18 04:37:18 2007 UTC

  Modified files:              
    /phpdoc/en/reference/filesystem/functions   file.xml 
  Log:
  - Added reference to FILE_TEXT and FILE_BINARY flags
  - Described the context parameter
  
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/file.xml?r1=1.23&r2=1.24&diff_format=u
Index: phpdoc/en/reference/filesystem/functions/file.xml
diff -u phpdoc/en/reference/filesystem/functions/file.xml:1.23 
phpdoc/en/reference/filesystem/functions/file.xml:1.24
--- phpdoc/en/reference/filesystem/functions/file.xml:1.23      Wed Jun 20 
22:24:27 2007
+++ phpdoc/en/reference/filesystem/functions/file.xml   Sat Aug 18 04:37:18 2007
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.23 $ -->
+<!-- $Revision: 1.24 $ -->
 <refentry xmlns="http://docbook.org/ns/docbook"; xml:id="function.file">
  <refnamediv>
   <refname>file</refname>
@@ -76,6 +76,27 @@
           </simpara>
          </listitem>
         </varlistentry>
+        <varlistentry>
+         <term>
+          <constant>FILE_TEXT</constant>
+         </term>
+         <term>
+          The content is returned in UTF-8 encoding. You can specify a 
different
+          encoding by creating a custom context. This flag cannot be used with 
+          <constant>FILE_BINARY</constant>. This flag is only available since 
+          PHP 6.
+         </term>
+        </varlistentry>
+        <varlistentry>
+         <term>
+          <constant>FILE_BINARY</constant>
+         </term>
+         <term>
+          The content is read as binary data. This is the default setting 
+          and cannot be used with <constant>FILE_TEXT</constant>. This flag is 
+          only available since PHP 6.
+         </term>
+        </varlistentry>
        </variablelist>
       </para>
      </listitem>
@@ -84,6 +105,10 @@
      <term><parameter>context</parameter></term>
      <listitem>
       <para>
+       A context resource created with the 
+       <function>stream_context_create</function> function.
+      </para>
+      <para>
        &note.context-support;
       </para>
      </listitem>
@@ -123,6 +148,13 @@
      </thead>
      <tbody>
       <row>
+       <entry>6.0.0</entry>
+       <entry>
+        Added support for the <constant>FILE_TEXT</constant> and 
+        <constant>FILE_BINARY</constant> flags.
+       </entry>
+      </row>
+      <row>
        <entry>5.0.0</entry>
        <entry>
         The <parameter>context</parameter> parameter was added

Reply via email to