faqts : Computers : Programming : Languages : PHP : kms : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 29 people (69%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

Can I execute multiple database queries in parallel from the same PHP script?
Can I do simultaneous database requests in PHP in the same script?

Jul 11th, 1999 06:10
Nathan Wallace, Rasmus Lerdorf


Each PHP script has only one thread to execute in.  That means that the
script must be executed in order.  You cannot just perform two database
queries simultaneously from a script.  You must execute the first, wait
for it to finish, and then execute the second query.