On a Unix or Linux system, create a crontab entry to run a script at a set time. The script should fetch and store the data. Presumably you have php installed in /usr/bin or /usr/local/bin. All of the necessary functions are documented in the filesystem section of the manual.
I would not do it that way; I would use wget, which is pretty standard on Linux systems.