I tried like this
call_ruby.php
<?php
shell_execute('php ruby.php');
exit;
ruby.php
<?php
sleep(30);
//trigger some action here ...
//ruby script in this case
But when I run call_ruby.php, it still sleep 30 seconds.
I have been thinking launch a script in the background, like in the web page design, I can submit the form to two urls, one is in the background. But in this shell_execute, how can I launch a script in the background?
Thanks!