I have this but I don't think it is working correctly.
Or maybe I don't know how to use it correctly.
I put the code on a server and then used cable modem and 56k modem and the results were basically the same??????
My real question is how can you automatically determine the connection speed of a user?
thanks
<?php
if(!($testfile = fopen("test2.jpg", "r")))
{
print("File could not be opened");
}
$start = getmicrotime();
while(!feof($testfile))
{
$nonLine = fgets($testfile, 1500);
}
$end = getmicrotime();
echo "$s <br>";
echo "$e <br>";
echo $e - $s;
?>