- Added reference to FILE_TEXT and FILE_BINARY flags

- Described the context parameter


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@241495 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nick Berard 2007-08-18 04:37:18 +00:00
parent fac64645e8
commit ba278a3b5c

View file

@ -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>
@ -83,6 +104,10 @@
<varlistentry>
<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>
@ -122,6 +147,13 @@
</row>
</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>