cvs: phpdoc-zh /reference/filesystem/functions file-exists.xml
| From: | Xiao shengwen | Date: | Tue, 22 Oct 2002 05:41:19 +0000 |
| Subject: | cvs: phpdoc-zh /reference/filesystem/functions file-exists.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-744@lists.php.net to get a copy of this message | ||
yincheng Tue Oct 22 01:41:19 2002 EDT
Modified files:
/phpdoc-zh/reference/filesystem/functions file-exists.xml
Log:
ÓëÓ¢ÎİæÍ¬²½
Index: phpdoc-zh/reference/filesystem/functions/file-exists.xml
diff -u phpdoc-zh/reference/filesystem/functions/file-exists.xml:1.2
phpdoc-zh/reference/filesystem/functions/file-exists.xml:1.3
--- phpdoc-zh/reference/filesystem/functions/file-exists.xml:1.2 Sun Sep 29 22:55:19 2002
+++ phpdoc-zh/reference/filesystem/functions/file-exists.xml Tue Oct 22 01:41:18 2002
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.2 $ -->
-<!-- $Author: dallas $ -->
-<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready -->
+<!-- $Revision: 1.3 $ -->
+<!-- $Author: yincheng $ -->
+<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready -->
<refentry id="function.file-exists">
<refnamediv>
<refname>file_exists</refname>
@@ -25,10 +25,34 @@
±¾º¯ÊýµÄ·µ»Ø½á¹û»á±»»º´æ¡£¸ü¶àÏêϸ×ÊÁϼû
<function>clearstatcache</function>¡£
</simpara>
- <simpara>
- ÔÚ Windows ÖÐÒªÓÃ "//computername/share/filename" »òÕß
- "\\\\computername\share\filename" À´¼ì²éÍøÂçÖеĹ²ÏíÎļþ¡£
- </simpara>
+ <note>
+ <title>ʹÓà Windows ¹²Ïí</title>
+ <para>
+ÔÚ Windows ÖÐÒªÓÃ <filename>//computername/share/filename</filename> »òÕß
+<filename>\\\\computername\share\filename</filename>
À´¼ì²éÍøÂçÖеĹ²ÏíÎļþ¡£
+ </para>
+ </note>
+ <para>
+ <example>
+ <title>²âÊÔÒ»¸öÎļþÊÇ·ñ´æÔÚ</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$filename = '/path/to/foo.txt';
+
+if (file_exists($filename)) {
+ print "The file $filename exists";
+} else {
+ print "The file $filename does not exist";
+}
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ <para>
+²Î¼û
<function>is_readable</function>£¬<function>is_writable</function>£¬<function>is_file</function>
ºÍ <function>file</function>¡£
+ </para>
</refsect1>
</refentry>