I'm working on a site that want's updated news from another site on their page, and I want it to update about once an hour, but I don't have cron. I thought about each time the page is requested, it checks the last modified date on a file, and if it's within an hour, it reads it, if not it runs a function to fetch it and save it into the cached file.
Does anyone know how to do this? I've never checked times and stuff on files, I just want an if statement to check the last modified date. Can anyone post an example?
Thanks,
Danny