I'm trying to get two instances of a php script to run concurrently. I have a script, 'test.php':
<p><?php echo time(); ?> Sleeping...</p>
<?php sleep(5); ?>
<p><?php echo time(); ?> done</p>
If I load the page in two browser tabs at the same time, I get this:
1446855680 Sleeping...
1446855685 done
and this:
1446855686 Sleeping...
1446855691 done
One instance blocks until the other loads. This happens on both Firefox and Chromium.
If I make a second identical script, 'test2.php', or rewrite two urls to the same script, and load the two pages in different tabs, I get this:
1446855862 Sleeping...
1446855867 done
and this:
1446855863 Sleeping...
1446855868 done
Both instances are loading at the same time. So it is identical URLs that are being blocked.
How can I get two instances of a script with the same URL to load/run at the same time?