zdravim, potreboval bych poradit s timto skriptem, ktery by mel spocitat za jak dlouho se stahne 100kB soubor. Na jinym serveru to spocita celkem realisticky ale na WZ to porad pise neco kolem 0,004 s, coz je pri mem pripojeni (512kbps) pekna blbost.
$time1 = microtime();
$time1 = explode(" ",$time1);
$time1 = $time1[1] + $time1[0];
$rd = "100000";
$s = "100kB.txt";
$f = fopen($s,'r');
fpassthru($f);
$time2 = microtime();
$time2 = explode(" ",$time2);
$time2 = $time2[1] + $time2[0];
$deltatime = $time2 - $time1;
$deltatime = (round(($deltatime*$rd)))/$rd;
echo $deltatime;
Pripada mi to, jakoby byla vypnuta funkce fpassthru(), je to mozne?