lstat

(PHP 3 >= 3.0.4, PHP 4, PHP 5)

lstat -- 给出一个文件或符号连接的信息

说明

array lstat ( string filename )

获取由 filename 指定的文件或符号连接的统计信息。本函数和 stat() 函数相同,只除了如果 filename 参数是符号连接的话,则该符号连接的状态被返回,而不是该符号连接所指向的文件的状态。

有关 lstat() 返回的数组结构见手册中 stat() 函数的页面。

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

提示: PHP 5.0.0 起本函数也可被某些 URL wrapper 使用。参考附录 L 来看哪些 wrapper 支持 stat() 系列函数的功能。

参见 stat()


add a note add a note User Contributed Notes
There are no user contributed notes for this page.