cvs: phpdoc-pl /reference/filesystem/functions fwrite.xml
| From: | Adam Major | Date: | Tue, 29 Apr 2008 17:59:13 +0000 |
| Subject: | cvs: phpdoc-pl /reference/filesystem/functions fwrite.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-1348@lists.php.net to get a copy of this message | ||
adi Tue Apr 29 17:59:13 2008 UTC
Modified files:
/phpdoc-pl/reference/filesystem/functions fwrite.xml
Log:
update to EN
http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/filesystem/functions/fwrite.xml?r1=1.9&r2=1.10&diff_format=u
Index: phpdoc-pl/reference/filesystem/functions/fwrite.xml
diff -u phpdoc-pl/reference/filesystem/functions/fwrite.xml:1.9
phpdoc-pl/reference/filesystem/functions/fwrite.xml:1.10
--- phpdoc-pl/reference/filesystem/functions/fwrite.xml:1.9 Thu Nov 29 11:31:58 2007
+++ phpdoc-pl/reference/filesystem/functions/fwrite.xml Tue Apr 29 17:59:13 2008
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.17 Maintainer: adi Status: ready -->
-<!-- $Revision: 1.9 $ -->
+<!-- EN-Revision: 1.18 Maintainer: adi Status: ready -->
+<!-- $Revision: 1.10 $ -->
<refentry xml:id="function.fwrite" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>fwrite</refname>
@@ -90,6 +90,26 @@
przerywania.
</para>
</note>
+ <note>
+ <para>
+ Je¶li, zapiszemy dwukrotnie do wska¼nika pliku, dane zostan± do³±czone na
+ koncu tre¶ci pliku, oznacza to, ¿e poni¿szy przyk³ad nie zadzia³a jak siê
+ tego spodziewamy.
+
+ <programlisting role="php">
+<![CDATA[
+<?php
+$fp = fopen('data.txt', 'w');
+fwrite($fp, '1');
+fwrite($fp, '23');
+fclose($fp);
+
+// plik 'data.txt' ma tre¶æ 123, a nie 23!
+?>
+]]>
+ </programlisting>
+ </para>
+ </note>
</refsect1>
<refsect1 role="examples">