cvs: phpdoc-zh /reference/filesystem/functions file-exists.xml
| From: | liuming | Date: | Tue, 16 Aug 2005 05:47:16 +0000 |
| Subject: | cvs: phpdoc-zh /reference/filesystem/functions file-exists.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-2320@lists.php.net to get a copy of this message | ||
lm92 Tue Aug 16 01:47:16 2005 EDT
Modified files:
/phpdoc-zh/reference/filesystem/functions file-exists.xml
Log:
updated to en version
http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/file-exists.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc-zh/reference/filesystem/functions/file-exists.xml
diff -u phpdoc-zh/reference/filesystem/functions/file-exists.xml:1.6
phpdoc-zh/reference/filesystem/functions/file-exists.xml:1.7
--- phpdoc-zh/reference/filesystem/functions/file-exists.xml:1.6 Mon Aug 18 16:51:02 2003
+++ phpdoc-zh/reference/filesystem/functions/file-exists.xml Tue Aug 16 01:47:14 2005
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.6 $ -->
-<!-- $Author: dallas $ -->
-<!-- EN-Revision: 1.10 Maintainer: dallas Status: ready -->
+<!-- $Revision: 1.7 $ -->
+<!-- $Author: lm92 $ -->
+<!-- EN-Revision: 1.14 Maintainer: dallas Status: ready -->
<refentry id="function.file-exists">
<refnamediv>
<refname>file_exists</refname>
@@ -30,9 +30,9 @@
$filename = '/path/to/foo.txt';
if (file_exists($filename)) {
- print "The file $filename exists";
+ echo "The file $filename exists";
} else {
- print "The file $filename does not exist";
+ echo "The file $filename does not exist";
}
?>
]]>
@@ -42,8 +42,15 @@
¬e.clearstatcache;
- ¬e.no-remote;
-
+ &tip.fopen-wrapper.stat;
+ <warning>
+ <para>
+ Èç¹ûÒòΪ<link
+
linkend="features.safe-mode">°²È«Ä£Ê½</link>µÄÏÞÖÆ¶øµ¼Ö²»ÄÜ·ÃÎÊÎļþµÄ»°£¬¸Ãº¯Êý»á·µ»Ø
+ &false;¡£È»¶ø£¬Èç¹ûÎļþÔÚ <link
linkend="ini.safe-mode-include-dir">safe_mode_include_dir</link>
+ ËùÖ¸¶¨µÄĿ¼Äڵϰ£¬ÈÔÈ»¿ÉÒÔʹÓà <link
linkend="function.include">included</link> ÒýÓá£
+ </para>
+ </warning>
<para>
²Î¼û
<function>is_readable</function>£¬<function>is_writable</function>£¬<function>is_file</function>
ºÍ <function>file</function>¡£
</para>