Connecting Tech Pros Worldwide Forums | Help | Site Map

Connection speed test with PHP

Aidan
Guest
 
Posts: n/a
#1: Jul 17 '05
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



Joachim Weiß
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Connection speed test with PHP


Aidan schrieb:[color=blue]
> Hi,
>
> I was wondering if it's possible to create a PHP enabled web-page that could
> be used to test my connection speed. ...[/color]

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

DH
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Connection speed test with PHP


Aidan wrote:[color=blue]
> 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[/color]

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

R. Rajesh Jeba Anbiah
Guest
 
Posts: n/a
#4: Jul 17 '05

re: Connection speed test with PHP


Aidan wrote:[color=blue]
> Hi,
>
> I was wondering if it's possible to create a PHP enabled web-page[/color]
that could[color=blue]
> be used to test my connection speed. I'm trying to determine the[/color]
difference[color=blue]
> 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[/color]
than my[color=blue]
> ISP, but I would just like a way of quantifying the acctual results.[/color]
Any[color=blue]
> suggestions are welcomed...[/color]

Please google for the resources.

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

Norman Peelman
Guest
 
Posts: n/a
#5: Jul 17 '05

re: Connection speed test with PHP


"Aidan" <nospam.aidan@linknet.com.au> wrote in message
news:newscache$5onfai$pye$1@titan.linknet.com.au.. .[color=blue]
> Hi,
>
> I was wondering if it's possible to create a PHP enabled web-page that[/color]
could[color=blue]
> be used to test my connection speed. I'm trying to determine the[/color]
difference[color=blue]
> 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[/color]

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

Norm


Closed Thread