Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Connection speed test with PHP
January 17, 2005, 5:19 am
rate this thread
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...
Re: Connection speed test with PHP
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
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.
- R. Rajesh Jeba Anbiah
January 17, 2005, 4:21 pm