cvs: phpdoc-zh /reference/filesystem/functions is-readable.xml

From: Date: Sun, 14 Aug 2005 14:51:54 +0000
Subject: cvs: phpdoc-zh /reference/filesystem/functions is-readable.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2261@lists.php.net to get a copy of this message
lm92 Sun Aug 14 10:51:54 2005 EDT Modified files: /phpdoc-zh/reference/filesystem/functions is-readable.xml Log: updated to en version http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/is-readable.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-zh/reference/filesystem/functions/is-readable.xml diff -u phpdoc-zh/reference/filesystem/functions/is-readable.xml:1.3 phpdoc-zh/reference/filesystem/functions/is-readable.xml:1.4 --- phpdoc-zh/reference/filesystem/functions/is-readable.xml:1.3 Wed Apr 23 19:58:53 2003 +++ phpdoc-zh/reference/filesystem/functions/is-readable.xml Sun Aug 14 10:51:54 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.3 $ --> -<!-- $Author: dallas $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- $Author: lm92 $ --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> <refentry id="function.is-readable"> <refnamediv> <refname>is_readable</refname> @@ -20,11 +20,25 @@ ¼Çס PHP Ò²ÐíÖ»ÄÜÒÔÔËÐÐ webserver µÄÓû§Ãû£¨Í¨³£Îª 'nobody'£©À´·ÃÎÊÎļþ¡£²»¼ÆÈ밲ȫģʽµÄÏÞÖÆ¡£ </para> - + <para> + <example> + <title><function>is_writable</function> Àý×Ó</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; - - &note.no-remote; - + &tip.fopen-wrapper.stat; <para> ²Î¼û <function>is_writable</function>£¬<function>file_exists</function> ºÍ <function>fgets</function>¡£

« previous php.doc.zh (#2261) next »