Given the following php code…
<?php
exec('myscript.php');
exec('finish.php');
?>
Is there a way to tell when myscript.php has stopped running?
I’d like to prevent finish.php from running until myscript.php is completed.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The exec() calls will block until the external job has completed. Unless you force one of the myscript call to run in the background, you’ll never have finish.php running while myscript.php is.