Categories
Linux Server Administration Tips PHP Tips & Tutorials

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

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.

By Yang Yang

Hello, I'm Yang. I build online businesses that please people. Want to join in and post some useful articles on Kavoir.com? Shoot me a message.

2 replies on “PHP: Getting Last Accessed Time of a File – File atime”

Comments are closed.