Only with the assistance of JavaScript.

1) Make a session
2) Log the start time (server)
3) Send a large graphic (200K)
4) <BODY onLoad='document.location="your/script.php"'>
5) Log finish time when the user comes back (check for a session, blah blah).
6) Do the math (200 * 1024 / ($stop-$start) = bytes per second).

No, it's not transparent to the user and no it's not microtime accurate, but
it *does* work.

Though it could just as easily be done in JavaScript on the client side and
have it send the result back as an argument, but I'll not assume JavaScript
knowledge as mine is flaky. =)

On Thu, 8 Feb 2001, Matias Banzas wrote:

>Is there any way to do this?? i mean.. test the connection speed of a client
>machine???

-- 
____________________________________________________________________________
Adam Knight                                       <[EMAIL PROTECTED]>
AIM: AdamKnight                                                 ICQ: 3848971
______________________________Codito, ergo sum______________________________
 ///|||||||||||||||||||| Domino effect at work!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to