cgm225 Posted July 7, 2007 Share Posted July 7, 2007 I want to do the following in a PHP script: Get the time at which a directory was last modified, and then, if it was within the last 30 days, echo that time. Thank you all for the help! cgm225 Quote Link to comment Share on other sites More sharing options...
Yesideez Posted July 7, 2007 Share Posted July 7, 2007 http://www.php.net/manual/en/function.filemtime.php Try pointing that to the folder rather than a file. Quote Link to comment Share on other sites More sharing options...
cgm225 Posted July 7, 2007 Author Share Posted July 7, 2007 Ok, that worked perfectly to get the directory modification time! Thank you. Now I just need help comparing dates. How can I conditionally echo something if the date is NOT older than 30 days. Thank you again for your help! Quote Link to comment 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.