I have tried to find the files I made today, I got most of my answers in other posts, but it could not be found. Instead of all the files given below, instead of the ones that were created today, any suggestions? Thank you.
$ di = new recurring directoryitter ('/ document / listing'); Foreach (new recursive iterator iterator ($ di) $ filename = & gt; $ file) {if (date ("m-d-Y", file $) == Date ("m-d-Y") {echo $ filename. '& Lt; Br / & gt; '; }}
First of all, about the function, this returns: file revision time.
But the function also exists, it gives: The file's inode change time.
As I've found filetime better for your question, but it really is not only made today, but it has been edited even today. My code:
& lt ;? Php $ path = dirname (__ file__); $ Objects = new recursiveitter iterator (new recursive directoryitter ($ path), recursiveitter iterator :: SELF_first); Foreign Currency ($ objects $ file = & gt; $ object) {$ basename = basename ($ file); If ($ basename == '.' Or $ basename == '..') {continue; } If (is_dir ($ file)) {continue; } If (Date ('Y-M-D') === Date ('Y-M-D', File Time ($ file))) {$ $ echo file PHP_EOL; }}
No comments:
Post a Comment