dmytton Tue Apr 5 11:36:42 2005 EDT
Modified files:
/phpdoc/en/reference/filesystem/functions is-readable.xml
Log:
Added example
http://cvs.php.net/diff.php/phpdoc/en/reference/filesystem/functions/is-readable.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/reference/filesystem/functions/is-readable.xml
diff -u phpdoc/en/reference/filesystem/functions/is-readable.xml:1.5
phpdoc/en/reference/filesystem/functions/is-readable.xml:1.6
--- phpdoc/en/reference/filesystem/functions/is-readable.xml:1.5 Sat Nov
29 11:39:55 2003
+++ phpdoc/en/reference/filesystem/functions/is-readable.xml Tue Apr 5
11:36:41 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.is-readable">
<refnamediv>
@@ -20,6 +20,23 @@
id 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_readable($filename)) {
+ echo 'The file is readable';
+} else {
+ echo 'The file is not readable';
+}
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
¬e.clearstatcache;