Added example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@183676 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
David Mytton 2005-04-05 15:36:41 +00:00
parent a224047ca6
commit 89f421c3ea

View file

@ -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>
&note.clearstatcache;