Looking for somewhere to host your site? Browse our PHP web hosts section!

Home > Code Snippets > Date and time a file was last accessed

Date and time a file was last accessed

Description

One line of code that will show when a file was last accessed. It will display it in the form Last accessed: Tuesday, February 17th, 2004 @ 12:51:37 am

The code

There was a problem whilst attempting to load the source code.

Get the code

Download the file to your computer: Click here to get the file