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

filectime

取得文件的 inode 修改时间
名称:filectime
分类:文件系统
所属语言:php
一句话介绍:返回文件的上次改变时间。

定义和用法

filectime() 函数返回指定文件的上次 inode 修改时间。

该函数返回文件上次 inode 被修改的时间。如果出错则返回 false。时间以 Unix 时间戳的方式返回。

实例

<?php
echo filectime("test.txt");
echo "Last change: ".date("F d Y H:i:s.",filectime("test.txt"));
?>

输出:

1138609592
Last change: January 30 2006 09:26:32.

语法

fileatime(filename)
参数 描述
filename 必需。规定要检查的文件。
同类函数
  • 返回路径中的目录部分  dirname

    dirname

    返回路径中的目录部分
  • 读取文件(可安全用于二进制文件)  fread

    fread

    读取文件(可安全用于二进制文件)
  • 清除文件状态缓存  clearstatcache

    clearstatcache

    清除文件状态缓存
  • 返回规范化的绝对路径名  realpath

    realpath

    返回规范化的绝对路径名
  • stream_set_write_buffer 的别名  set_file_buffer

    set_file_buffer

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

    fgetcsv

    从文件指针中读入一行并解析CSV字段
  • 在文件指针中定位  fseek

    fseek

    在文件指针中定位
  • 修改符号链接的所有者  lchown

    lchown

    修改符号链接的所有者
热门文章