Multithreading in PHP with pcntl Functions
Sometimes you need to run several copies of one script at the same time. The easiest method is to do something like this: for($i=0;$i<10;$i++) { system (“/usr/local/bin/php go.php $i > start.log &”); echo “thread $i started”; } ?> Not very elegant, but it works, if you are allowed to use PHP’s system() function. I will tell you how… Read More »