Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a script (PHP?) that I can install (via FTP) and run that will give me a listing of the files that are modified AFTER a particular date on the entire domain?

share|improve this question

closed as off-topic by HopelessN00b Dec 5 '14 at 9:23

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Linux? Windows? Does it have to be web-based? – spoulson May 14 '09 at 15:13
Linux. But I don't have shell or physical access to my server. – Jarvis May 14 '09 at 15:18
This question appears to be off-topic because Server Fault is not a free script writing service. – HopelessN00b Dec 5 '14 at 9:23
up vote 2 down vote accepted

It's been years since I've last touched PHP, but if I recall correctly you can call an external (shell) command from it, and suck in the results. Under that assumption, if the server you're dealing with is a Unix/Linux box, you could call out to the 'find' command and let it do the work.

The basic syntax would be: find /your/web/root/here/ -mtime -5 -print if you wanted a list of all files modified in the last 5 days.

Just write a PHP wrapper around that command (modified as needed) to run it and display the results on a page for you. I think that should do the trick.

share|improve this answer

I also suggest to use a PHP wrapper and this basic shellscript:

# find all files newer then "2012-10-31 12:09"    
touch -d "2012-10-31 12:09" /tmp/reference
find /path/to/observe -newer /tmp/reference > /path/to/webserver/modified.files
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.