PDA

View Full Version : Download time check?



Hamed
July 21st, 2008, 06:32
How can I check download time via php for internet speed 56Kbps(Dial UP) and 128Kbps (ADSL)?

krakjoe
July 21st, 2008, 06:54
You'll probably want to use a mixture of php and javascript for this one.

I'd create a form, that when submitted it requests a php script that chucks out nonsense data 1(0(0))mb in length, I'd use javascript to time the download of the script and ajax to update speed / progress ...

You'll have to do some wikipedia'ing to get some data about unit sizes ... possibly some clever trick to discount the size of headers

I would have written something working but am real busy today ... anyone else ?

Hamed
July 21st, 2008, 13:03
I have file size and file temp now I want to say how long user can download it.