malhal / CloudKit-PHP

For server-to-server comms from PHP to CloudKit.
MIT License
39 stars 10 forks source link

Setup #8

Open inPhilly opened 7 years ago

inPhilly commented 7 years ago

Can you explain how this can be setup on a server to run a script that will continually update CloudKit from a third-party API? This code looks awesome, I am just a bit confused of how to set it up.

malhal commented 7 years ago

You could use a cron job to run the script periodically. Just make sure you do the full path to your php executable and the script which you can find out from 'which php'. Cron runs as a different user and doesn't always know where to find things so best use full paths.