Re: URGENT! Need help with command line for "list all new/modified files within the last 24 hours"

From: Date: Fri, 26 Oct 2012 11:11:27 +0000
Subject: Re: URGENT! Need help with command line for "list all new/modified files within the last 24 hours"
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-319605@lists.php.net to get a copy of this message
2012/10/25 <lamp@afan.net>: > Hi to all, > My site with Drupal 7. I contacted tech support and he said he accessed to > the site with FTP - what I doubt. But if it's truth - it's even worse > because whole server is then compromised. > I need help with command line for "list all new/modified files within the > last 24 hours". > > Thanks for any help, > LAMP > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Easy one. 1) List all files within a directory recursively: http://php.net/manual/en/function.readdir.php 2) Now just excract the modification time of each file: http://php.net/manual/en/function.filemtime.php 3) Print on the screen those with modificication time < than 24 hours 4) Profit!

« previous php.general (#319605) next »