guest2013-1
guest
- Joined
- Aug 22, 2003
- Messages
- 19,800
- Reaction score
- 13
An idea popped into my head and since some of you have a deeper understanding of all things OS/PHP (Linux too... since I'm only really starting to get into LAMP now), I was wondering:
Is it possible to determine the last accessed date/time of a specific php (or html) file by the Apache/NGINX server?
And by possible I mean *easy* and NOT resource intensive (since I realize you could scan the access logs for this data)
The reason why I ask is because, since my caching question, I've been thinking of writing out an html file (generated from the 3rd party API I'm using) and mod_rewrite the URL to check if a file for it exists or to do a new API call/file generation for the item being searched for or viewed.
Then based on access date/time, be able to remove older files or even just use it as an indicative tool as to what is trending on my site.
NO I DON'T WANT TO USE A DATABASE!
A database would defeat the point of this exercise for me 
Is it possible to determine the last accessed date/time of a specific php (or html) file by the Apache/NGINX server?
And by possible I mean *easy* and NOT resource intensive (since I realize you could scan the access logs for this data)
The reason why I ask is because, since my caching question, I've been thinking of writing out an html file (generated from the 3rd party API I'm using) and mod_rewrite the URL to check if a file for it exists or to do a new API call/file generation for the item being searched for or viewed.
Then based on access date/time, be able to remove older files or even just use it as an indicative tool as to what is trending on my site.
NO I DON'T WANT TO USE A DATABASE!