Re: Testing CONNECTION Speed

From: Date: Thu, 08 Feb 2001 18:48:12 +0000
Subject: Re: Testing CONNECTION Speed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38799@lists.php.net to get a copy of this message
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 <ahknight@graphitebox.com> AIM: AdamKnight ICQ: 3848971 ______________________________Codito, ergo sum______________________________ ///|||||||||||||||||||| Domino effect at work!

« previous php.general (#38799) next »