need genius advice: PHP / nusoap multithreading

Hi! I've got an experimental search algorithm I coded in PHP 4...
Now I want to speed things up by running it on a small network instead of just one box. I want to use one master script to take each call, chop up the work, and distribute parts of its processing to other servers.
My thought was to use nuSOAP to just pass off a fraction of the search range, then call the same algorithm on all the other boxes and get their data back in XML. No biggie. Except I didn't realize that PHP actually waits for each request to be completed in a for...next structure before moving on to the next call. I guess this should have been obvious, in retrospect. Anyway, that pretty much makes it pointless to try and multi-thread anything.
I'm on a box w/o pcnt / fork abilities, so that's not an option, and I've heard it's slow anyway. Does anyone have a nice way to create something similar to an event handler for nuSOAP in PHP, so it just triggers what it needs to when it's finished, and still moves on to the next call? Maybe this is just stupid; but there must be some genius who's dealt with this and conquered it...
Thanks!
[1176 byte] By [joshstrike] at [2007-11-20 7:35:25]
# 1 Re: need genius advice: PHP / nusoap multithreading
Well multithreading and php are not really the best friends:)
And without the use of pcntl-fork you should think about, if using php covers
your needs.

Nevertheless check out this links:

http://www.alternateinterior.com/2007/05/multi-threading-strategies-in-php.html
http://www.alternateinterior.com/2007/05/communicating-with-threads-in-php.html
http://uk.php.net/manual/en/function.pcntl-fork.php
blueday54555 at 2007-11-10 3:56:24 >
# 2 Re: need genius advice: PHP / nusoap multithreading
Thanks! That's a fascinating strategy. I think it's worth trying, since the amount of overhead going into the SOAP calls is relatively light compared to the processing being done on the far end by each server...
Much appreciated =)
joshstrike at 2007-11-10 3:57:32 >