Running file as background process
All your scripts from a shell as a background process in PHP
exec ("/usr/bin/php yourscript.php >/dev/null &");
The part on the end is the important part... >/dev/null sends the output if your script to nowhere and the & spins it into a background process.
No comments:
Post a Comment