Prompt the implementation of the next task. You need to do something like cron or add a new cron using php to the site. Namely, after the user pays for the service, it is required to add a task that can be performed at intervals of 1-5-30 minutes or every five to ten to 24 hours to choose from. Using while as for me is not the best implementation. What if I have more than 100 such tasks in the queue, it turns out that the interval will not work correctly. As an example, you can take for example the service of dynamic covers for VC, they have a similar one there as it is implemented. Below is an example of how it is implemented at letscover.me. That is required like that. 
- How much I am aware of can not directly affect cron, therefore, in theory, a task is simply created with the necessary parameters, and cron then checks every n-minutes, as an option. I hope the rest of the participants will correct me - DaemonHK
- see item number 4 - aleksandr barakin
- @DaemonHK is possible. - Manitikyl
1 answer
crond program (if briefly): executes the specified command at the specified time and sends everything that the command in stdout + stderr sends to the specified email address.
all the logic above this is advisable to perform inside your program (script), which will be periodically called by the crond program.
you need to implement a scheduler in your program (script) that will determine what to do and when (based on information stored between launches, for example, in a database or files, or anywhere else).
it makes sense to ask new questions about the specific details of the implementation of such a planner using the appropriate button .
similar question: Run the command in n time
- And here crond if I have a hosting? Either I misunderstood something? - VikiMayson