irchtml Mon Feb 23 03:09:32 2004 EDT
Modified files:
/phpdoc/en/reference/filesystem/functions fwrite.xml
Log:
updated example (per user note)
http://cvs.php.net/diff.php/phpdoc/en/reference/filesystem/functions/fwrite.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/filesystem/functions/fwrite.xml
diff -u phpdoc/en/reference/filesystem/functions/fwrite.xml:1.8
phpdoc/en/reference/filesystem/functions/fwrite.xml:1.9
--- phpdoc/en/reference/filesystem/functions/fwrite.xml:1.8 Mon Dec 15 11:49:45
2003
+++ phpdoc/en/reference/filesystem/functions/fwrite.xml Mon Feb 23 03:09:31 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.fwrite">
<refnamediv>
@@ -62,7 +62,7 @@
}
// Write $somecontent to our opened file.
- if (!fwrite($handle, $somecontent)) {
+ if (fwrite($handle, $somecontent) === FALSE) {
echo "Cannot write to file ($filename)";
exit;
}