in reply to How do I log access to a resource on a website via script
Wouldn't you be better simply using something like awstats?
Martin