By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,983 Members | 1,717 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,983 IT Pros & Developers. It's quick & easy.

Connection speed test with PHP

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
"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 discussion thread is closed

Replies have been disabled for this discussion.