bandwidth tester

Discussion in 'PHP' started by gigamike, Jun 12, 2007.

  1. #1
    Hi Guys,

    I need your help, anyone who did a utility to test speed of connection or bandwidth test. I did one but inaccurate (sucks ). The logic behind on what i did was i count the seconds on how long a user donwload the image file. Everytime they do a test im renaming the image file so that it will not store to the cache. Any ideas guys, im stock or do i need really a 3rd party software for this one like speedtest.net.

    Thanks,

    Mike
     
    gigamike, Jun 12, 2007 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    mad4, Jun 12, 2007 IP
  3. gigamike

    gigamike Active Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Hi mad4,

    thanks for the help and yeah i saw it. Ahm what i need is that i have a site and ill be providing a bandwidth test/measure connection.

    Let say you visit my site. Ill provide you with this

    Status: Finished
    Image size: 4715744 bytes
    Time to down load image: 96.953 seconds
    Throught put : 389.116 kilo bits per second
    Throught put : 48.639 kilo bytes per second
    Throught put : 0.049 Mega bytes per second

    Thanks,

    Mike

     
    gigamike, Jun 12, 2007 IP
  4. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #4
    I don't personally know of any pre-made scripts that will allow you to do this, but I think that javascript or flash are going to be the best way to actually do it. You may want to check in a Javascript or flash forum, and see if you can get a better response there. Since php is executed on the server, it doesn't have the ability to measure the time it takes to actually stream information to the user from the server.
     
    jestep, Jun 12, 2007 IP