Tuesday, May 04, 2010

Multithreading with PHP

It’s "not possible" according to Google. And maybe true multithreading isn't, but by modifying another user's code I found on PHP.net, this solution worked pretty well for me:

http://www.php.net/manual/en/function.proc-open.php#97713

Now a script that would have taken well over 10 minutes to run takes my server only 1 minute. Sweet.

No comments: