I have a PHP script. I want this PHP script to trigger another PHP script under some condition, which I can do, but I want the second script to be fired after some amount of time..
For instance, if condition holds start the second script in 2 hours..
How can I achieve this in the simplest way using PHP or any other ready to use options?
Thank you.
You could have a database with the time you need a script to be run and have a cron to run a php script every hour or so to check if there are tasks that needs to be performed (and perform them).
With that you could have your first php script to write the task, and the php script run by cron to finalize your task.