This function returns the last access time of the specified file.

Syntax: fileatime(filename)

Description:

The Parameter filename is Required. It Specifies the file to check.

This function returns the last access time as a Unix timestamp on success, FALSE on failure.

Example:
Code:

echo fileatime("test.txt");
echo "
"; echo "Last visit: ".date("F d Y H:i:s.",fileatime("test.txt"));

Output:

1307162313
Last visit: June 04 2011 04:38:33.

eXTReMe Tracker