473,326 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

caculate user download speed

i want to calculate a user download speed.
what would be the best way, let a java script calculate it?, or let php do
it?
i was thinking of using an image as testfile.
with php i could send the image data with a stream(add a no-cache header
with it)

bart
Jul 17 '05 #1
2 2701
1 month or so ago, I did some tests

http://www.gzentools.com/snippetview...=speedtest.php

actual link is here
http://www.gzentools.com/test/speedtest.php
--
Mike Bradley
http://www.gzentools.com -- free online php tools
"bart" <ba**@thatissecret.nlm> wrote in message
news:40*********************@news.xs4all.nl...
i want to calculate a user download speed.
what would be the best way, let a java script calculate it?, or let php do
it?
i was thinking of using an image as testfile.
with php i could send the image data with a stream(add a no-cache header
with it)

bart

Jul 17 '05 #2

Uzytkownik "bart" <ba**@thatissecret.nlm> napisal w wiadomosci
news:40*********************@news.xs4all.nl...
i want to calculate a user download speed.
what would be the best way, let a java script calculate it?, or let php do
it?
i was thinking of using an image as testfile.
with php i could send the image data with a stream(add a no-cache header
with it)


Depends on how sophisticate you want the test to look. A pure server-side
solution is simpler to code, since you don't need to deal with browser
issues. On the other hand your visitor might end up staring at a blank
screen for a few seconds (or longer). McAfee has something like that:

http://promos.mcafee.com/speedometer/testing.asp

With client-side + server-side approach you can deliver a slicker interface,
but is harder to write. I fancy something like this: in an invisible iframe,
a PHP script would output a large number of white spaces. Every now and then
a <script>parent.ontransfer([# of bytes sent]);</script> gets toss in. The
Javascript function (back in the main page) updates the UI with statistics
and progress info. There'd be a cancel button for canceling the test.
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: mike_j | last post by:
I'm writing a download script in php. This script sends files using echo in order to limit download speed. My script has to do something after connection abort. Everything is ok unless client...
26
by: Simon | last post by:
I'm doing a survey. When do you think GNU/Linux will be ready for the average Joe? What obstacles must it overcome first?
3
by: Jamie Pittman via AccessMonster.com | last post by:
I am currently working on a project to take an employees time for a day and and if over 8 hours it would move those extra hours to overtime row amd not caculate into regular time. I started to use...
24
by: Rob R. Ainscough | last post by:
VS 2005 I have: ClickOnce deployment User's that hate and or don't want to use an IE Client (don't blame them) I don't see how ASPX web pages are going to survive? With .NET 2.0 and clickonce...
4
by: Nick | last post by:
hi, guys I don't know where should I put this post, because this is a general question, not really a c# question. The question is how to caculate the real distance between two geographical...
4
by: halimunan | last post by:
Hello all, I have a question, how do i measure the download/upload speed... as if download rate, upload rate or kbps transfer rate. i want to do my own windows application using C# to measure the...
2
by: ad | last post by:
There are some uses in my windows 2003 domain. The can print with a printer in a pc. How can I caculate the numbers of pages of a users?
2
by: =?Utf-8?B?Z3JlYXRiYXJyaWVyODY=?= | last post by:
Hi, I know there isn't a specific event property for the download speed, but can anyone tell me how to find it? I'm not sure how to write the code. Thanks, Jason
4
by: nestle | last post by:
I have DSL with a download speed of 32MB/s and an upload speed of 8MB/s(according to my ISP), and I am using a router. My upload speed is always between 8MB/s and 9MB/s(which is above the max upload...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.