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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2012/10/25  <lamp@xxxxxxxx>:
> 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux