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? Quote 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); ?> Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.