Answer the question
In order to leave comments, you need to log in
How to run PHP script from Crona?
Good day.
The task is next. Get a value from the user for how long to run a specific PHP script. The data gets into MySQL.
How can I transfer data from the database to Cron? Or maybe there are some other solutions?
Thank you for your attention.
Answer the question
In order to leave comments, you need to log in
DmitryNnov , is the database required at all? If it is possible to modify the script that writes to the database, then you can entrust this task to this very script. Or if a database is needed (for example, to display information in the admin panel), then the following logic can be used:
1) The script writes to the database
2) The same script adds a task to cron using shell_exec (like this https://stackoverflow.com/questions /16957789/cront... )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question