So I created a file microtime.php
and tested it on my Windows Server 2008 R2 64x Enterprises
running nginx
dedicated server.
<?php
for ( $i = 0; $i <= 5; $i++ ) {
echo time() . '<br />';
echo microtime() . '<br />';
echo '<br />';
}
?>
and I get this:
1371343916
0.52320400 1371343916
1371343916
0.52320400 1371343916
1371343916
0.52320400 1371343916
1371343916
0.52320400 1371343916
1371343916
0.52320400 1371343916
1371343916
0.52320400 1371343916
Why the results are the same and how to fix that ?
Instead I should get something like this:
1371345446
0.61877300 1371345446
1371345446
0.61878200 1371345446
1371345446
0.61878500 1371345446
1371345446
0.61878700 1371345446
1371345446
0.61878900 1371345446
1371345446
0.61879100 1371345446
Kind Regards.