Is it possible to edit the Crontab with a php file? I’m working on project that allows users to create schedules in order to have specific information sent to them at specific times. The two methods I’m looking at to do this are:
when the user schedules a send-time, it is entered into the crontab, which will run the proper script at the proper time. This is the thing where I don’t know if it will work, since I haven’t found any information on dynamic automated crontab editing.
when the user schedules a send-time, it is stored and the crontab runs a script every 10 minutes. That script essentially asks: “Is it time yet? Is it time yet? Is it time yet?” over and over until the time for the event actually comes.
For my purposes, editing the crontab would be the easier solution, but I have no idea if it is possible.