nicobn Sat Aug 18 04:19:49 2007 UTC
Modified files:
/phpdoc/en/reference/filesystem/functions file-put-contents.xml
Log:
Specify explicitly the behaviour when the file already exists
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/file-put-contents.xml?r1=1.16&r2=1.17&diff_format=u
Index: phpdoc/en/reference/filesystem/functions/file-put-contents.xml
diff -u phpdoc/en/reference/filesystem/functions/file-put-contents.xml:1.16
phpdoc/en/reference/filesystem/functions/file-put-contents.xml:1.17
--- phpdoc/en/reference/filesystem/functions/file-put-contents.xml:1.16 Sat Aug
18 03:32:51 2007
+++ phpdoc/en/reference/filesystem/functions/file-put-contents.xml Sat Aug
18 04:19:49 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.16 $ -->
+<!-- $Revision: 1.17 $ -->
<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="function.file-put-contents">
<refnamediv>
<refname>file_put_contents</refname>
@@ -20,6 +20,11 @@
<function>fwrite</function> and <function>fclose</function> successively
to write data to a file.
</para>
+ <para>
+ If <parameter>filename</parameter> does not exist, the file is created.
+ Otherwise, the existing file is overwritten, unless the
+ <constant>FILE_APPEND</constant> flags is set.
+ </para>
</refsect1>
<refsect1 role="parameters">