mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
- 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:
parent
fac64645e8
commit
ba278a3b5c
1 changed files with 33 additions and 1 deletions
|
@ -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>
|
||||
¬e.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>
|
||||
|
|
Loading…
Reference in a new issue