I want to run multiple instances of the following script parallel:
for($i = 0; $i < 1000; ) {
echo "It works! Woohoo.<br/>";
sleep(1);
flush();
ob_flush();
}
I have included the httpd-mpm.conf in Apache's httd.conf, but it still doesn't work. I'am using WAMP with Windows7. Is there a way to get this working?
Thanks!
execto spawn more processes, which will run asynchronously to your program, but that's about it AFAIK.curl_multi_exec()(example here). No option is really clean or desirable. :-)execwas the only way to do it. But yeah. I guess we agree.