当前位置: 首页> 函数类别大全> 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
)
同类函数
  • 更改当前的 umask  umask

    umask

    更改当前的umask
  • 获取文件所有者  fileowner

    fileowner

    获取文件所有者
  • 提供有关文件的信息  stat

    stat

    提供有关文件的信息
  • 改变文件所属的组  chgrp

    chgrp

    改变文件所属的组
  • 打开进程文件指针  popen

    popen

    打开进程文件指针
  • 获取文件权限  fileperms

    fileperms

    获取文件权限
  • 从文件指针中读取一行  fgets

    fgets

    从文件指针中读取一行
  • 返回文件系统或磁盘分区上的可用空间  disk_free_space

    disk_free_space

    返回文件系统或磁盘分区上的可用空间