Jump to content

Last modified


Lyleyboy

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.