Here's my situation: We have an outside provider that will be pushing XML files to our server every 30 seconds at a specified time in the week. That time will vary each week. So, I would like to give my users an interface on the management side of our site where they could "push a button" and trigger the capturing of data. (and in the same way be able to turn the job off)
I have planned to do this using PHP. I assume that I'll need to run some system commands from my script to schedule and delete cron jobs.
My question is: Is this the best way to do this? Is there any danger in scheduling and deleting cron jobs from php? What things do I need to keep in mind as I'm creating this?
Also, any pointers/hints at how to accomplish this are more than welcome. Thanks in advance.