I want have PHP call another process (another PHP script at the moment
but it may end up being a binary) in the background and not wait for
process to complete, but rather instantly jump the the next line of
code.
I've tried things like:
exec("./script.php &"); // script.php has executable permissions set
exec("at -f ./script.php now"); // and #!/usr/bin/php at the top of
the code
Neither seem to work. They both execute script.php, but both hang
around until script.php has completed.
Any ideas?
but it may end up being a binary) in the background and not wait for
process to complete, but rather instantly jump the the next line of
code.
I've tried things like:
exec("./script.php &"); // script.php has executable permissions set
exec("at -f ./script.php now"); // and #!/usr/bin/php at the top of
the code
Neither seem to work. They both execute script.php, but both hang
around until script.php has completed.
Any ideas?
Comment