473,241 Members | 1,632 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,241 software developers and data experts.

Connection speed test with PHP

Hi,

I was wondering if it's possible to create a PHP enabled web-page that could
be used to test my connection speed. I'm trying to determine the difference
in speed between my personal web-space (at my ISP) and my external
web-host... obviously I expect the external host to be much slower than my
ISP, but I would just like a way of quantifying the acctual results. Any
suggestions are welcomed...

Regards,

Aidan
Jul 17 '05 #1
4 3165
Aidan schrieb:
Hi,

I was wondering if it's possible to create a PHP enabled web-page that could
be used to test my connection speed. ...


Hi Aidan,

PHP is running only on the server, that means you can not measure a
connection speed directly. You need some action from the client.
Client action is always problematical because don't know your Client.

Next is the server load which is not easy to determine.

However if you keep all those things in mind you can test servers like this:

1. write a php.script which sends a large html page
2. the end of the page contains a javaScript which opens a new page from
the server
3. track the time difference of the too calls on the server
4. do that ... times at different times of the day,to get a good result

This will not be very accurate but it helps to determine the connection
speed of a server.

HIH

Jo

Jul 17 '05 #2
DH
Aidan wrote:
Hi,

I was wondering if it's possible to create a PHP enabled web-page that could
be used to test my connection speed. I'm trying to determine the difference
in speed between my personal web-space (at my ISP) and my external
web-host... obviously I expect the external host to be much slower than my
ISP, but I would just like a way of quantifying the acctual results. Any
suggestions are welcomed...

Regards,

Aidan


Somewhat indirectly related to your question, consider
ob_start('ob_gzhandler');
and the impact of sending compressed data to the browser.

See also http://leknor.com/code/gziped.php

Jul 17 '05 #3
Aidan wrote:
Hi,

I was wondering if it's possible to create a PHP enabled web-page that could be used to test my connection speed. I'm trying to determine the difference in speed between my personal web-space (at my ISP) and my external
web-host... obviously I expect the external host to be much slower than my ISP, but I would just like a way of quantifying the acctual results. Any suggestions are welcomed...


Please google for the resources.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Jul 17 '05 #4
"Aidan" <no**********@linknet.com.au> wrote in message
news:ne********************@titan.linknet.com.au.. .
Hi,

I was wondering if it's possible to create a PHP enabled web-page that could be used to test my connection speed. I'm trying to determine the difference in speed between my personal web-space (at my ISP) and my external
web-host... obviously I expect the external host to be much slower than my
ISP, but I would just like a way of quantifying the acctual results. Any
suggestions are welcomed...

Regards,

Aidan


I have a script that will do this... email me and i'll send it to you as an
attachment.

Norm
Jul 17 '05 #5

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

Similar topics

13
by: Yang Li Ke | last post by:
Hi guys, Is it possible to know the internet speed of the visitors with php? Thanx -- Yang
5
by: chris | last post by:
hi all, is there a way that a script can detect the connection speed of a visitor, so that I can direct slower connection to a standard site and faster DSL/cable users to a flash copy of the...
13
by: Jordanakins | last post by:
Usenet, I am currently working on my website and am needing to detect the connection speed of the client. I would like to do this in PHP and not use any other languages. This makes it a bit more...
2
by: m004202002 | last post by:
I recently visited a site http://us.mcafee.com/root/speedometer/default.asp which find out the connection speed . Can any body explain how(logic) to do it ? Can i do that using php ? Please help...
8
by: DP | last post by:
I read some articles and post how to optimize te speed of asp pages regarding opening and closing DB connections but I am still not sure about this. Is it true that it doesn't matter how many...
11
by: Mike MacSween | last post by:
Anybody done it? Speed OK? This would be over a 512 kbps connection, at BOTH ends. i.e. the client machine would be on a DSL connection, so would the server. Cheers, Mike
16
by: crbd98 | last post by:
Hello All, Some time ago, I implemented a data access layer that included a simple connectin pool. At the time, I did it all by myself: I created N connections, each connection associated with...
2
by: perspolis | last post by:
Hi all How can I get connection speed when pc connects to internet or in LAN??
3
by: John | last post by:
Hi I have a windows form app with one master table and several details (grids). As I am filling both the master and details using vs 2005 generated dataset and data adapters, there are multiple...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
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...

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.