超越PHP PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册
Site search:    
<is_executableis_link>
Last updated: Fri, 22 Jun 2007

is_file

(PHP 3, PHP 4 , PHP 5)

is_file -- 判断给定文件名是否为一个正常的文件

说明

bool is_file ( string filename)

如果文件存在且为正常的文件则返回 TRUE

注: 本函数的结果会被缓存。详细信息参见 clearstatcache()

注: 本函数不能作用于远程文件,被检查的文件必须通过服务器的文件系统访问。

参见 is_dir()is_link()




add a note add a note User Contributed Notes
is_file
amraam at ao dot net
12-Mar-2000 10:56
It seems that is_file doesn't return true for a file that is 0 bytes. Perhaps it is something with the file system.  I am using IIS 3.0 on an NT4 box.  I worked around it using !is_dir($filename) but that seems a clunky way to do it.

<is_executableis_link>
 Last updated: Fri, 22 Jun 2007
view source | feedback | send page | sitemap | aboutus   
Copyright ® 2002-2003 PHPE.NET. All rights reserved
Last updated:2002-11-22