PHP: Getting Last Accessed Time of a File – File atime

by Yang Yang on April 22, 2009

Share This Article:
Subscribe to Kavoir: blog feed

File atime is the last accessed time of the file, in PHP, you can get the last accessed time of any file by:

$last = fileatime('anyfile');

You may also want to know how to get the mtime or ctime of a file.

Share This Article:
Subscribe to Kavoir: blog feed

You should also read:

Previous post:

Next post: