Current Location: Home> Function Categories> fileatime

fileatime

Get the last access time of the file
Name:fileatime
Category:File system
Programming Language:php
One-line Description:Returns the last access time of the file.

Definition and usage

fileatime() function returns the last access time of the specified file.

This function returns the last time the file was accessed. If an error occurs, it returns false. Time is returned as a Unix timestamp.

Example

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

Output:

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

grammar

 fileatime ( filename )
parameter describe
filename Required. Specify documents to be inspected.
Similar Functions