Here is my situation: we have a third-party provider that will push XML files to our server every 30 seconds at the specified time per week. This time will change every week. Therefore, I would like to provide my users with an interface on the management side of our site, where they can “click a button” and start data capture. (and in the same way you can turn off the work)
I planned to do this using PHP. I assume that I will need to run some system commands from my script in order to schedule and delete cron jobs.
My question is: is this the best way to do this? Is there any danger when scheduling and deleting cron jobs from php? What do I need to keep in mind when I create this?
In addition, any pointers / hints on how to do this are more than welcome. Thank you in advance.
source
share