当前位置: 首页> 函数类别大全> lstat

lstat

给出一个文件或符号连接的信息
名称:lstat
分类:文件系统
所属语言:php
一句话介绍:返回关于文件或符号连接的信息。

实例

<span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token function">print_r</span><span class="token punctuation">(</span><span class="token function">lstat</span><span class="token punctuation">(</span><span class="token string double-quoted-string">"test.txt"</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

输出类似:

Array
(
[0] => 0
[1] => 0
[2] => 33206
[3] => 1
[4] => 0
[5] => 0
[6] => 0
[7] => 92
[8] => 1141633430
[9] => 1141298003
[10] => 1138609592
[11] => -1
[12] => -1
[dev] => 0
[ino] => 0
[mode] => 33206
[nlink] => 1
[uid] => 0
[gid] => 0
[rdev] => 0
[size] => 92
[atime] => 1141633430
[mtime] => 1141298003
[ctime] => 1138609592
[blksize] => -1
[blocks] => -1
)
同类函数
  • 同步对文件的更改(包括元数据)  fsync

    fsync

    同步对文件的更改(包括元数据)
  • 取得文件的 inode 修改时间  filectime

    filectime

    取得文件的inode修改时间
  • 判断给定文件名是否可执行  is_executable

    is_executable

    判断给定文件名是否可执行
  • 从文件指针中读取一行  fgets

    fgets

    从文件指针中读取一行
  • 解析一个配置文件  parse_ini_file

    parse_ini_file

    解析一个配置文件
  • 建立一个具有唯一文件名的文件  tempnam

    tempnam

    建立一个具有唯一文件名的文件
  • 拷贝文件  copy

    copy

    拷贝文件
  • 清除文件状态缓存  clearstatcache

    clearstatcache

    清除文件状态缓存