On Fri, January 25, 2008 11:33 am, Floor Terra wrote:
>>>>> I know how to do multiple queries - the key issue in my question
>>>>> was how to do them concurrently (i.e. in parallel).
>>>> So you want to make PHP multithreaded???
>>>
>>> No, just the mysql queries.
>>
> Try pcntl_fork() to create a child process for each query.
> Each child can make it's own MySQL connection.

Do *NOT* do this in a web-server environment, unless you have
EXTENSIVELY and EXHAUSTIVELY tested all your PHP extensions for
thread-safety!

http://php.net/pcntl_fork
just plain says "Don't do that." for a reason...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to