cmgmyr Posted May 31, 2007 Share Posted May 31, 2007 I would like to calculate a viewer's internet connection speed when coming to a site. How do I do this? I've done a bunch of searches and came up with a few scripts that weren't that accurate when I tried them. Any ideas? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/53745-calculating-internet-connection-speed/ Share on other sites More sharing options...
per1os Posted May 31, 2007 Share Posted May 31, 2007 Java and Flash are the two ways that most people use and usually takes a bit to do. I do not think this is really possible with out. You can see working examples at www.dslreports.com/speedtest other than that without decent size files with multiple tests you cannot truly find out their speed. Quote Link to comment https://forums.phpfreaks.com/topic/53745-calculating-internet-connection-speed/#findComment-265608 Share on other sites More sharing options...
cmgmyr Posted May 31, 2007 Author Share Posted May 31, 2007 Well this is something that I found: http://support.internettoolkit.com/speedcheck/index.php but obviously I can't see the actual script. This is pretty much what I need, but I just need it to run in the background for the first time someone visits a site. I don't want to display the output, I just want to use that number internally. Quote Link to comment https://forums.phpfreaks.com/topic/53745-calculating-internet-connection-speed/#findComment-265619 Share on other sites More sharing options...
cmgmyr Posted June 2, 2007 Author Share Posted June 2, 2007 bump, any other ideas? Quote Link to comment https://forums.phpfreaks.com/topic/53745-calculating-internet-connection-speed/#findComment-267114 Share on other sites More sharing options...
ShogunWarrior Posted June 2, 2007 Share Posted June 2, 2007 Well the problem of course is that getting the browser to download a 1MB file without the user knowing and keeping them on the same page without them moving is pretty tricky. This isn't really a technical problem as much as simply a problem of convenience. If they know they are checking their connection speed you can simply push out a 1MB file in known size chunks and record the time taken but doing it in the background will be problematic especially on slower connections or where visitors keep moving. (On the technical side this could be done by putting an <img> tag into a page who's src was actually a PHP page which pushed out 1MB (or some large enough size) of data and logged the result) Quote Link to comment https://forums.phpfreaks.com/topic/53745-calculating-internet-connection-speed/#findComment-267148 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.