PHP: Getting Last Modification Time of a File – File mtime

by Yang Yang on April 22, 2009

Share This Article:
Subscribe to Kavoir: blog feed

File mtime is the last modified time of the file or the time when the last modification of the file content occurred. To get the last modified time of the file in PHP, use:

$last = filemtime('anyfile');

Read more about how to get the ctime and atime in PHP.

Share This Article:
Subscribe to Kavoir: blog feed

You should also read:

Leave a Comment

{ 1 trackback }

Previous post:

Next post: