473,405 Members | 2,310 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,405 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 3171
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.