I have a very simple question: what is the best way to download a file in PHP but only if a local version has been downloaded more than 5 minute ago?
In my actual ca
You can save a copy of your file on first hit, then check with filemtime the timestamp of the last modification of the local file on following hits.