$filename = 'somefile.txt';if (file_exists($filename)) { echo "$filename was last changed: " . date("F d Y H:i:s.", filectime($filename));}