Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Test Connection speed when user hits site

Status
Not open for further replies.

skosterow

Technical User
Feb 23, 2002
135
US
Is it possible to test the inbound user connection speed?

Then say:

if ($connection_speed <= 26.6) {
# do somthing
} elsif ($connection_speed <= 56.6) {
# do somthing
} else {
# do somthing
}

Wise men ask questions, only fools keep quite.
 
When an inbound connection arrives at a webserver, it could be moving at faster speeds that when it left the client machine to the ISP's gateway.

For that reason, I'd have thought it impossible, but DSLreports, and a few other broadband tests do something similar, but how I'm not sure, could be a good place to start.

I'm guessing that what you want to do is to show different versions of sites based on connection speed, if that's the case, give them a choice at the home page, and meta-refresh after 3 secs to the higher quality page.
But I could be wrong, and it wouldn't be the first time ...

--Paul

cigless ...
 
Paul -

Thanks bud! Thats what i currently have - I know how to test for browser type with the $ENV{BROWSER} but speed is the concern - the guy that wrote the flash for the site left - and ofcourse its S-L-O-W loading on low speed connections - we want to get rid of the front page that says go her for slow speed and go here for high speed ETC.

Hopefully some one here knows how to do this like DSLReports. :) My guess is there has to be a way to somehow see the frams leaving the server or something....

- Scott

Wise men ask questions, only fools keep quite.
 
One thing you can do for the Flash is split the different sections into separate files. For instance, if you have a 20 second movie with a sound file as the pre-loader, set those files separately. That way, the user will download the SWF file first, and the audio second, while the flash is playing.

Just a thought,

- Rieekan
 
Rieekan,

Good idea if i knew how - im setting up for classes for FLASH MX Pro now - and i knew that you could do a small preloader - but then im still at the same place.

There would have to be a selector for reg HTML.

- Scott

Wise men ask questions, only fools keep quite.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top