当前位置: 首页> 函数类别大全> 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
)
同类函数
  • 获取一个连接的信息  linkinfo

    linkinfo

    获取一个连接的信息
  • 打开进程文件指针  popen

    popen

    打开进程文件指针
  • 输出文件  readfile

    readfile

    输出文件
  • 从文件指针中读入一行并解析 CSV 字段  fgetcsv

    fgetcsv

    从文件指针中读入一行并解析CSV字段
  • 返回符号链接的目标  readlink

    readlink

    返回符号链接的目标
  • 同步对文件的更改(包括元数据)  fsync

    fsync

    同步对文件的更改(包括元数据)
  • 寻找与模式匹配的文件路径  glob

    glob

    寻找与模式匹配的文件路径
  • 用模式匹配文件名  fnmatch

    fnmatch

    用模式匹配文件名