• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

Compare file date and actual date

Hi experts!

I want to know if a file is more than 30 minutes older than when it was last modified. Obviously, I want need to comprae the flie's date to the actual system date....any ideas?

Thanks!!!
0
Indietrasher
Asked:
Indietrasher
1 Solution
 
hernst42Commented:
See http://de3.php.net/manual/en/function.filemtime.php
if (filemtime($file) < (time()-1800)) { echo "file is older than 30 minutes"; }
0
 
IndietrasherAuthor Commented:
Excellent!!!

Thanks a lot,,,
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now