I have a simple little script that prints the current time, sleeping for ten seconds, and prints the current time again:
<?php
echo "<html><head><title>title</title></head><body>";
echo "<p>Pre-sleep: " . date("H:i:s") . "</p>";
sleep(10);
echo "<p>Post-sleep: " . date("H:i:s") . "</p>";
echo "</body></html>";
?>
Actually, I have the same code on two different pages (e.g. blah1.php and blah2.php). If I use two different browsers to hit these two different pages at the same time (essentially), both pages work (essentially) at the same time:
blah1.php output:
Precession: 11:15:26
After sleep: 11:15:36
blah2.php output:
Precession: 11:15:27
After sleep: 11:15:37
But if I use two different browsers instead, so that both are the same copy of the script, as if the second instance does not even start until the completion of the first completion:
blah1.php instance 1 pin
Precession: 11:09:07
After sleep: 11:09:17
blah1.php 2
: 11:09:17
: 11:09:27
, , PHP - , , PHP, , , - - script, ? ?
? ? , , sleep() , PHP (Apache, ) , - ?
( )? , ?
.
: , PHP, Apache - .
, " ", : Firefox ( ). , Firefox IE, .
Firefox -. GET, .
, , Firefox: , Firefox URL, Firefox , .