I have a script ripping lunchmenus from a bunch of html pages using snoopy. As this process can be quite lengthy and the data is static for the day, I'd like this process to be performed only when the first visitor of the day hits the page.
The only solution I've come up with so far is to grab the data and store in an include file and then do fstat(10 fp) > getdate() to determine if the content has been updated or not.
If anyone could help me come up with a smarter solution, it would be much appriciated! The platform is IIS4 / PHP4.
Thanks!