Get Connection Speed
Moderator: General Moderators
Get Connection Speed
Is there a way in PHP to retrieve the user (visitor) connection speed like "dial-up" or "broadband" or maybe in the form of 56k or 1mb?
Thanks.
Thanks.
- neel_basu
- Forum Contributor
- Posts: 454
- Joined: Wed Dec 06, 2006 9:33 am
- Location: Picnic Garden, Kolkata, India
Hi!
In this forum there already is a Speed testing Script. You can use it.
viewtopic.php?t=61261&start=45
In this forum there already is a Speed testing Script. You can use it.
viewtopic.php?t=61261&start=45
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
...which has proven to be completely unreliable and bogus. Sorry.neel_basu wrote:Hi!
In this forum there already is a Speed testing Script. You can use it.
viewtopic.php?t=61261&start=45
- neel_basu
- Forum Contributor
- Posts: 454
- Joined: Wed Dec 06, 2006 9:33 am
- Location: Picnic Garden, Kolkata, India
Sorry You missed the last post
on viewtopic.php?t=61261&start=45dharprog wrote:Hi
Mr.Neel has made a good programme really. I tested it and Its working very well.
here is the link to test :
http://www.indoservices.org/skillbound/spd.php
Thank You very much.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
No, I did not. Why? Because it is not done via PHP, but by relying on Javascript. Which may very well be turned off, not to mention your timing may be way off. Again, unreliable.neel_basu wrote:Sorry You missed the last post on viewtopic.php?t=61261&start=45
- neel_basu
- Forum Contributor
- Posts: 454
- Joined: Wed Dec 06, 2006 9:33 am
- Location: Picnic Garden, Kolkata, India
First Test your speed on that url with javascript enabled.feyd wrote:No, I did not. Why? Because it is not done via PHP, but by relying on Javascript. Which may very well be turned off, not to mention your timing may be way off. Again, unreliable.neel_basu wrote:Sorry You missed the last post on viewtopic.php?t=61261&start=45
Whatever Site you go for Speed testing you will see that most of them uses Either Flash or Java Applet or Javascript or any cliant side Scripted Items.
Ya It can also be done By PHP only but the Visitor will get bored with it.
And in this case if Javascript of Users PC is turnd off there is no loss of Server. So if they want to test their speed they need to Enable Javascript. Its their headech now
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Neel, can we not get on that topic again. Your method was pretty well disproven. It does not work. Especially with JS off. Here is an example:
With JS on:
With JS off:
Other sites that use Flash...
With JS on:
Code: Select all
Your Current Bandwidth is:
531.60kbps
That Means You Can Download At 66.45 KB/sec. FROM THIS SITE.Code: Select all
Testing Your Current Bandwidth...Code: Select all
Megapath: DL - 406Kb/s, UL - 879Kb/s
Linkline: DL - 511Kb/s, UL - 819Kb/s
NetAccess: DL - 325Kb/s, UL - 479Kb/s- neel_basu
- Forum Contributor
- Posts: 454
- Joined: Wed Dec 06, 2006 9:33 am
- Location: Picnic Garden, Kolkata, India
I am just Pointing out some Quotes from the Previous Topic
THis is My Speed testing Results
And also. And this logic is applicable on each and every Speed testing Sites. And Your net surfing Speed is not fixed or constant It varies Time to Time. and also If Javascript is disabled then the user simply Cant Test his / her Speed just as If Flash Is Disabled or not Installed the User Cant Test his / Her SpeedIf you dont Rely on Javascript why are you relaying on Flash ??
-----------------------
Edit OOPS its Logic not login
And in this Topichttp://forums.devnetwork.net/viewtopic.php?t=61261&postdays=0&postorder=asc&start=0 wrote:feyd wrote:It's not testing how fast data can be pushed to the client though, it's testing how fast the server can push data internally. It's not a direct active connection between PHP and the requesting client. Javascript, Flash even Java can do actual speed tests. PHP cannot in this case.kingconnections wrote:I think what feyd, is trying to get at is that php is a server side script. All items are executed on the server and displayed in the client. No execution takes place on the client side of this script.
In order for correct download speed to be measured you would have to use a client side processing language ie java, or java script.feyd wrote:It doesn't matter if it's server independent, it does matter whether you are testing the connection versus data pushing power however.Something that's done from the client side (or interacts with it) likely offers a more accurate solution set.
And Now Whatever We will do in cliant side may be turned off by the user weather its Flash or Javascript or Java Appleat.This Topic wrote:feyd wrote:but by relying on Javascript. Which may very well be turned off, not to mention your timing may be way off. Again, unreliable.Everah wrote:Especially with JS off.
Ya I've opened that With flash disabledOther sites that use Flash...
My Speed in String ????Browser wrote:Unable to load Plugin Content
THis is My Speed testing Results
http://www.bandwidthplace.com/speedtest/ wrote:207.4 kilobits per second
Communications 207.4 kilobits per second
Storage 25.3 kilobytes per second
1MB file download 40.4 seconds
Subjective rating Mediocre
My ISP http://calcuttatelephones.com/bandwidthmeter/initialmeter.php wrote:Your current bandwidth reading is:
199.20kbps
http://www.speakeasy.net/speedtest/ wrote:206 KBPS
Speed Testing Varies On the The Server where the Speed testing Script is Running If the Server is Busy or The Internet Connection speed Speed of the server is slowed down It will affect the Speed Testing Result.http://www.indoservices.org/skillbound/spd.php wrote:Your Current Bandwidth is:
207.80kbps
That Means You Can Download At 25.98 KB/sec. FROM THIS SITE.
Perform a New Test
And also. And this logic is applicable on each and every Speed testing Sites. And Your net surfing Speed is not fixed or constant It varies Time to Time. and also If Javascript is disabled then the user simply Cant Test his / her Speed just as If Flash Is Disabled or not Installed the User Cant Test his / Her SpeedIf you dont Rely on Javascript why are you relaying on Flash ??
-----------------------
Edit OOPS its Logic not login
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US