Closed Thread
Results 1 to 11 of 11

Thread: connection speed

  1. #1

    connection speed

    is there a PHP or CGI script that tells the user their speed?
    Last edited by fimi; July 20th, 2002 at 08:41.

  2. #2
    Junior Member niatrom is an unknown quantity at this point
    Join Date
    Jul 2002
    Posts
    19

    Re: connection speed

    Originally posted by fimi
    is there a PHP or CGI script that tells the user their speed?
    No...

    PHP & CGI scripts are server side so it can't tell a thing about the end user other than what the browser tells it.

    You can do some speed tests by downloading/uploading files if you really need to know though

  3. #3
    ok then how is this site doing it? does any1 know?

  4. #4
    Pro Member Gonzo is an unknown quantity at this point Gonzo's Avatar
    Join Date
    Oct 2000
    Location
    Nova Scotia, Canada
    Posts
    352
    Most sites just use a image to show people there speed.

    here is one site that shows how they do it,

    http://www.bandwidthplace.com/speedtest/faq.html

    its located on the side of the page.

  5. #5
    can anyone write this program for me?

  6. #6
    FWS Addict Damoose is an unknown quantity at this point Damoose's Avatar
    Join Date
    Nov 2001
    Location
    UK
    Posts
    757
    Originally posted by fimi
    can anyone write this program for me?
    and if anyone does can i have the code too? ROFLMFAO

  7. #7
    Pro Member Master_tee has disabled reputation
    Join Date
    Apr 2002
    Location
    California
    Posts
    496
    ROTFLMAO
    -Tee

  8. #8
    Originally posted by master_tee
    ROTFLMAO
    What is so funny?

  9. #9
    Senior Member Dumbbell69 is an unknown quantity at this point
    Join Date
    Feb 2002
    Posts
    191
    Why do you need that script? There are many sites that have the speed test program anyway. And it may uses up so much data transfer cuz there maybe lots of people loading that speed test image.

  10. #10
    i need it for something and i im the only one who uses it.

  11. #11
    Senior Member nag is an unknown quantity at this point
    Join Date
    Mar 2002
    Location
    Pakistan
    Posts
    131
    It is a javascript here is the code that I can produce:

    Code:
    <html>
    <script language="JavaScript"> 
    <!--
    //Speed Testing script
    //Written by naveed afzal
    naveed = new Date;
    old_time = naveed.getTime();
    -->
    </script>
    <body onload="t_time()">
    
    You can put anything in body but change the file size according to it
    
    <img src="http://members.lycos.co.uk/naveedafzal/logo.gif">
    <script>
    function t_time()
    {
    good = new Date;
    new_time = good.getTime();
    var total_time;
    //Change the file size below to your own file size
    var f_size=976;
    total_time =f_size/(new_time-old_time);
    document.write("Time taken is "+total_time);
    }
    </script></body></html>
    Hope it would help all of you.

Closed Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts