hmm. If you are hosting the server yourself the monitoring tools will tell you what was accessed, when, how long, how much data, etc. I don't see where you would need a script to tell you that.
If it's not hosted by you, you may want to use a traffic monitoring tool like awstats. It's updatable with the click of a button and gives you information on all the files that were accessed, etc.