How to send a SQL query to database in PHP without waiting for result

Working with DB2 and PHP, my ADDs and DROPs take a long time to finish (30 seconds per ADD and DROP). I am curious if there is a way to send my ADDs and DROPs to the database without having PHP wait for a response?

Answers


I'm fairly certain that most php db controls don't have async methods (too bad). Presuming that you just need to do DB statements that don't interact with the end user you could use pcntl_fork. If you need something else, a solution like this may be more useful.


Need Your Help

How to initialize a string set in C++?

c++ string set

I have a few words to be initialized while declaring a string set.

Radio buttons: PHP only passing “Other” value

php post if-statement radio-button e-commerce

I've borrowed several versions of PHP (from here and other sites) to pass the selected amount in a radio fieldset to a ecommerce gateway, but regardless of what I have tried, it will only pass the ...

MonoTouch CurrentUICulture

.net ios monotouch cultureinfo nslocale

When I change the Language of the emulator or the device this change is not reflected in neither Thread.CurrentUICulture nor CultureInfo.CurrentUICulture. Is this by design?