concurrent querries to multiple databases (php + mysql )

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alisaWL
Forum Newbie
Posts: 4
Joined: Tue Jun 30, 2009 5:03 am

concurrent querries to multiple databases (php + mysql )

Post by alisaWL »

Hi Guys,
I have a set of databases: db1, db2, db3.....dbn
and a set of queries:q1, q2, q3....qn
I would like to submit each query to its corresponding database concurrently and display all the results (r1...rn) on a web page as soon as all queries are executed.

My question is, how do i do this with php/mysql on a unix machine?
I know php doesn't really support concurrency... do I need to use forking?
A code example would be GREATLY appreciated.

Thanks!
Post Reply