dmytton Mon Apr 4 13:31:30 2005 EDT
Modified files:
/phpdoc/en/reference/filesystem/functions is-writable.xml
Log:
Added example
http://cvs.php.net/diff.php/phpdoc/en/reference/filesystem/functions/is-writable.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc/en/reference/filesystem/functions/is-writable.xml
diff -u phpdoc/en/reference/filesystem/functions/is-writable.xml:1.6
phpdoc/en/reference/filesystem/functions/is-writable.xml:1.7
--- phpdoc/en/reference/filesystem/functions/is-writable.xml:1.6 Sat Nov
29 11:39:55 2003
+++ phpdoc/en/reference/filesystem/functions/is-writable.xml Mon Apr 4
13:31:30 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.is-writable">
<refnamediv>
@@ -22,6 +22,23 @@
that the web server runs as (often 'nobody'). Safe mode
limitations are not taken into account.
</para>
+ <para>
+ <example>
+ <title><function>is_writable</function> example</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$filename = 'test.txt';
+if (is_writable($filename)) {
+ echo 'The file is writable';
+} else {
+ echo 'The file is not writable';
+}
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
¬e.clearstatcache;