Current location: Hot Scripts Forums » General Community » Script Requests » Download speed estimator


Download speed estimator

Reply
  #1 (permalink)  
Old 09-13-06, 06:29 AM
bittyboy bittyboy is offline
New Member
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Download speed estimator

Hello all

Im hoping someone can help me in here on my quest to find a download speed estimator script. I have been looking all over the place and keep coming across a few javascript ones. Although these are good im looking to have a drop down box where they select their connection speed and then it gives a simple time result (estimated) I do apologise if this is posted in the wrong place as im not surw wether it will be javascript or php?

Edit: Come to think of it, is it possible for a script to auto detect their connection speed and auto display approx times?

Any help and suggestions appreciated.
Thanks
Nick
Reply With Quote
  #2 (permalink)  
Old 09-13-06, 07:24 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Moved to Script Requests.
Reply With Quote
  #3 (permalink)  
Old 09-15-06, 12:51 AM
duesi's Avatar
duesi duesi is offline
Wannabe Coder
 
Join Date: Jun 2006
Posts: 225
Thanks: 0
Thanked 0 Times in 0 Posts
That is a very interesting question!

You need to find a way to measure the time it takes for the user to download a given file (its important that you measure the download, not the upload speed of the user, else you misjudge DSL connections completely).

But frankly, I don't know yet how I would do that!
__________________
Duesi

"One of the great skills in using any language is knowing what not to use, what not to say" (Ron Jeffries)

http://www.swissbytes.de
Reply With Quote
  #4 (permalink)  
Old 09-18-06, 07:56 AM
GO4TF4CE's Avatar
GO4TF4CE GO4TF4CE is offline
Wannabe Coder
 
Join Date: Apr 2004
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Cool

One way that this could be done is:
1) the server logs what time the speed test is requested

2) you would then have a default file with a set size to download i.e 1024K

3) once the file has finished downloading the page would then call back the page and find the difference in time using the server. From this you will need do some simple maths and find the average KB/sec i.e. if 1024K took 10 seconds to download then you would know that the connection was running at 102.4KB/sec(also if I remember correctly on average 13% is in overheads if you want to get really accurate). The bigger the file the more likely that you get a more accurate number as the connection would stabalised.
__________________
Intelligence is not knowledge, but the way we use our knowledge.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download speed testing thorerik PHP 0 08-02-06 12:15 PM
Pay per download script shamend143 Script Requests 6 11-13-04 01:52 PM
Pay per download script shamend143 Job Offers & Assistance 3 10-30-04 11:59 AM
download queue script? really DESPERATE monokill Script Requests 0 07-10-04 02:41 AM
PHP download... niceguyonline Script Requests 3 03-06-04 05:41 PM


All times are GMT -5. The time now is 11:28 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.