, , ,

Php has file related functions , which helps us to get complete details of the file creation and modification etc

Code Snippet
// filemtime is a php function which gives us the last modified info of any file

$file_modified_on = date(“l, dS F, Y @ h:ia”,filemtime($path_to_file));

echo “File was modified on > “.$file_modified_on;


Syntax of filemtime()
int filemtime ( string $path_to_file )

Description of filemtime()

Function returns the modification time of specified file.