Lyleyboy Posted February 6, 2009 Share Posted February 6, 2009 Hi all, Having a weird issue. I am trying to display the last modified data of a txt file in a sub folder. I am using a version of the below code. $myfile = filemtime('/path/to/file/file.php'); The date is showing as 1/1/1970. I'm prettry sure I didnt write it 7 years before I was born... I have the path set up as "sub/file.txt" would it require the absolute path? Link to comment https://forums.phpfreaks.com/topic/144049-last-modified/ Share on other sites More sharing options...
uniflare Posted February 6, 2009 Share Posted February 6, 2009 http://uk3.php.net/manual/en/function.filemtime.php should help Link to comment https://forums.phpfreaks.com/topic/144049-last-modified/#findComment-755867 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.