Link to home
Start Free TrialLog in
Avatar of siva_siva
siva_sivaFlag for India

asked on

Detect internet speed with php

Is it possible to know the internet speed of the visitors with php?
ASKER CERTIFIED SOLUTION
Avatar of keteracel
keteracel
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of siva_siva

ASKER

Large amount of data means what i want to give in this?

I am also visit that site it display bandwidth speed irregularly.

420 kbps, 190 kbps and 556 kbps etc...
I've tried it 5 times:

3.08Mbps
3.17Mbps
3.13Mbps
3.13Mbps
3.19Mbps

It's pretty consistent. Seems like you've got a pretty variable connection. And I guess it will be more variable with smaller connections.

Also note that your internet traffic will not always go through the same route to the same webpage. So sometimes it'll be randomly slower anyway.
Might be worth doing several tests, throwing away the fastest and slowest, then average the rest. Give you a better metric.
Avatar of Joe Wu
Wouldn't the downside though be that they would have to load the actual tester file? If I was on a 56k connection I wouldn't be too happy about that :-)
Well you'd ideally start with a small file then increase it to get more accurate results for faster bandwidths.