adam291086 Posted August 21, 2008 Share Posted August 21, 2008 i am trying to get the last time the file has been modified using $filename = $fList[$i]; echo date("l, dS F, Y @ h:ia", filemtime($filename)); The $fList[$i]; is an array with all the files names stored in here. All i get is the date Thursday, 01st January, 1970 @ 01:00am. What am i doing wrong? Link to comment https://forums.phpfreaks.com/topic/120697-solved-file-last-modified-date/ Share on other sites More sharing options...
CSB Posted August 21, 2008 Share Posted August 21, 2008 <?php $last_modified = filemtime("file_name_goes_here.php"); print "Last modified " . date("l, dS F, Y @ h:ia", $last_modified); ?> Link to comment https://forums.phpfreaks.com/topic/120697-solved-file-last-modified-date/#findComment-621924 Share on other sites More sharing options...
adam291086 Posted August 21, 2008 Author Share Posted August 21, 2008 Thats exactly the same as what i have got and it gives the same result Link to comment https://forums.phpfreaks.com/topic/120697-solved-file-last-modified-date/#findComment-621927 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.