Parallel execution of requests

General discussion forum for the Zend Server
Post Reply
Posts: 4
Joined: Thu Jul 07, 2011 11:57 am

Parallel execution of requests

Post by lionmuzzle » Wed Nov 14, 2012 9:24 am


please help me to resolve the problem. Imagin I run this script:

Code: Select all

if (@$_REQUEST['q'] == 1) {
    echo microtime(true);
<iframe src="?q=1"></iframe>
<iframe src="?q=1"></iframe>
<iframe src="?q=1"></iframe>
<iframe src="?q=1"></iframe>
And I see that iframes are loaded each after another with a delay in 1 second, i.e. the last iframe shows its result in 4 seconds. But I would prefer that requests of the iframes were procecced simultaneously. Is it possible?

User avatar
Posts: 1778
Joined: Thu Dec 11, 2008 1:08 pm

Re: Parallel execution of requests

Post by kentatzend » Wed Nov 14, 2012 11:45 pm

Not really the way you have it written. since you HTMLis executing serially. However, if you used Javascript you could do each frame as a separate callback and those could run in parallel.

Post Reply