$file = "/path/to/file.txt"; $last_modified_time = filemtime($file); echo date("F d Y H:i:s.", $last_modified_time);