Re: looking for program/script to diff directories and show dates
| From: | John Nichel | Date: | Wed, 27 Jul 2005 18:19:48 +0000 |
| Subject: | Re: looking for program/script to diff directories and show dates | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-219444@lists.php.net to get a copy of this message | ||
Philip Hallstrom wrote:
Yeah, but I *think* he's in the *nix world. I'm just throwing s**t at the wall and seeing what will stick. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.comCan't you run into problems where depending on how they get copied from server to server the modified time gets adjusted? Seems I've run into that in Windows when FTP'ing. It doesn't preserver that info and treats all the files as brand spanking new...I was just expirementing with the diff command and was wondering if there was anything out there that does the same thing but with a more intuitive interface? The problem I want to avoid is a basic one. "Which file did I update last week that I forgot to publish to the live site?" It would be really cool if there was something built on ncurses and not just command line driven. Alternatively, if there aren't any scripts out there I'd like to hear how the list members handle this.What about just checking the modified times of the two files with filemtime()? You could have it grab the timestamp of both files, compare them, and see if it's outside a set parameter (like 24 hours, 7 days, etc).