當前位置: 首頁> 函數類別大全> fileatime

fileatime

獲取文件的最後訪問時間
名稱:fileatime
分類:文件系統
所屬語言:php
一句話介紹:返回文件的上次訪問時間。

定義和用法

fileatime()函數返回指定文件的上次訪問時間。

該函數返回文件上次被訪問的時間。如果出錯則返回false。時間以Unix 時間戳的方式返回。

實例

<?php
echo fileatime ( "test.txt" ) ;
echo "Last access: " . date ( "F d YH:i:s." , fileatime ( "test.txt" ) ) ;
?>

輸出:

 1140684501
Last access: February 23 2006 09:48:21.

文法

fileatime ( filename )
參數描述
filename必需。規定要檢查的文件。
同類函數
  • 返回文件路徑的信息 pathinfo

    pathinfo

    返回文件路徑的信息
  • 尋找與模式匹配的文件路徑 glob

    glob

    尋找與模式匹配的文件路徑
  • 獲取真實路徑緩衝區的大小 realpath_cache_size

    realpath_cache_size

    獲取真實路徑緩衝區的大小
  • 將整個文件讀入一個字符串 file_get_contents

    file_get_contents

    將整個文件讀入一個字符串
  • 返回符號鏈接的目標 readlink

    readlink

    返回符號鏈接的目標
  • 改變文件所屬的組 chgrp

    chgrp

    改變文件所屬的組
  • is_writable 的別名 is_writeable

    is_writeable

    is_writable的別名
  • 從文件中格式化輸入 fscanf

    fscanf

    從文件中格式化輸入
熱門文章