- file is now binary safe

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@100175 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jan Lehnardt 2002-10-18 20:47:26 +00:00
parent b96468c7fd
commit de10ad4d95

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.file">
<refnamediv>
@ -56,10 +56,12 @@ $html = implode ('', file ('http://www.example.com/'));
<note>
<para>
As of PHP 4.3.0 you can use <function>file_get_contents</function> to
return the contents of a file as a string in a binary safe manner.
return the contents of a file as a string.
</para>
<para>
In PHP 4.3.0 <function>file</function> became binary safe.
</para>
</note>
&note.not-bin-safe;
&tip.fopen-wrapper;
<para>
See also <function>readfile</function>,