Getting the Last Modified Time of a File in PHP


Retrieve the time the file was last modified with filemtime().

Source Code

echo "Last modified: " . date("F d Y H:i:s.", filemtime("test.txt"));
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments