Connection speed test with PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Aidan

    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


  • Joachim Weiß

    #2
    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

    Comment

    • DH

      #3
      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_gz handler');
      and the impact of sending compressed data to the browser.

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

      Comment

      • R. Rajesh Jeba Anbiah

        #4
        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/

        Comment

        • Norman Peelman

          #5
          Re: Connection speed test with PHP

          "Aidan" <nospam.aidan@l inknet.com.au> wrote in message
          news:newscache$ 5onfai$pye$1@ti tan.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


          Comment

          Working...