I am currently executing a command using shell_exec, which outputs some data. I want to run this in a sequence as below but would like to start the second one after the first one has finished outputting the data. Is there any way to detect the "end" of shell_exec (or finish outputing)?
$output1 = shell_exec($command1);
$output2 = shell_exec($command2);
$output3 = shell_exec($command3);
thanks!!
how to delay execution time
Moderator: General Moderators