I\'开发者_如何学Gom searching through the manual page for find I can\'t see a way to run a command which will find all files modified within an hour. I can see only a way to do it for days.Guess this
I want to check if a file is older than a certain amount of time (e.g. 2 days). I managed to get the file creation time in such a way:
Hi i get this error when a cache script is included in my site.. Warning: filemtime() [function.filemtime]:
My situation I am currently using Cache Busting when I include CSS files like this: echo \"<link href=\'stylesheet.css?\" . filemtime(\'stylesheet.css\') . \"\' />\"
What I am trying to do is check the age of an image, if its older than 60 minutes then run another php page to fetch images otherwise do nothing if less than 60 minutes old....
Have an开发者_StackOverflow中文版 example piece of (Python) code to check if a directory has changed: