PHP fileatime() Function

The fileatime() function returns the last access time of the specified file.This function returns the last access time as a Unix timestamp on success, FALSE on failure.

int fileatime ( string $filename )

Gets the last access time of the given file.

Example -

ParameterDescription
filenameRequired. Specifies the file to check

Note -

The atime of a file is supposed to change whenever the data blocks of a file are being read. This can be costly performance-wise when an application regularly accesses a very large number of files or directories. Some Unix filesystems can be mounted with atime updates disabled to increase the performance of such applications; USENET news spools are a common example. On such filesystems this function will be useless.