Page 1 of 1

concurrent querries to multiple databases (php + mysql )

Posted: Mon Oct 12, 2009 5:30 am
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!