2012/10/25  <l...@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!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to