File last updated time : File Property « File Directory « PHP






File last updated time


<?php
   $file = "./demoCSV.csv";
   echo "File last updated: ".date("m-d-y g:i:sa", filemtime($file));
?>

           
       








Related examples in the same category

1.Is it a file: is_file()
2.Is the file a directory: is_dir()
3.Is the file readable: is_readable()
4.Is the file writable: is_writable()
5.File changed time
6.File modified time
7.File accessed time
8.Checking the Mode of a File
9.Determining the Size of a File
10.Get the file size: filesize
11.Is the file executable: is_executable
12.filegroup: Gets file group
13.File last changed time
14.File last accessed time
15.Get the file owner
16.Get file permission