Page 3 of 5
Posted: Thu Dec 28, 2006 1:21 pm
by Z3RO21
Please test your connection with that and then test it with something like
http://www.bandwidthplace.com/speedtest/ this will hopefully show you that it in fact does not work. Also take notice of the wealth of information other posters have given you and I hope you take notice not to base information on that script.
Posted: Thu Dec 28, 2006 1:23 pm
by Kieran Huggins
It sort-of works. You'll find that once your server is under load it will report a VERY low figure die to processing limitations. Multiple refreshes will drop my speed from 100k to 30k, and I'm on a 400k connection.
It's a good trick, and it might help weed out dial-up users, but don't rely on it.
Posted: Thu Dec 28, 2006 1:28 pm
by daedalus__
It's not a good trick because it does not work. The processing of the script happens on the server. The only thing that script accomplishes is lagging people with a slow connection because it sends a megabyte of text.
Posted: Thu Dec 28, 2006 1:56 pm
by nickvd
I'm going to contact my lawyers.
My ISP provides me with 5 megabit service... (640kilobytes)...
Your script is reporting my speed as being 125kb/s.
This is a breach of the contract that I signed.
Oh wait, never-mind, YOUR SCRIPT WILL NOT WORK!
Posted: Thu Dec 28, 2006 5:36 pm
by RobertGonzalez
Your test:
Helllo User Your Net Surfing Speed is 19.989 kb/s
CNET's bandwidth test:
446.7 Kbps
Speakeasy Speed Test
550 Kbps Down
696 KbpsUp
I think it is safe to say your code does not work like you think it does.
PS I know I said I was done with this thread, but these results don't lie, so I thought I'd throw them out there.
Posted: Thu Dec 28, 2006 5:43 pm
by nickvd
Ick... 550kbps? Sorry to hear that...
Just tested again with speakeasys...
Helllo User Your Net Surfing Speed is 109.346 kb/s
Speakeasy reported 4342kb/s Down and 601kb/s Up...
Posted: Thu Dec 28, 2006 6:13 pm
by jayshields
I'm in the UK, I used this bandwidth test provided by ZDNet:
http://specials.zdnet.co.uk/misc/band-t ... est50.html
It reported 6580.6 Kbps.
Your website reported Helllo User Your Net Surfing Speed is 111.684 kb/s, which you'll notice is very similar to what everyone else got using your script. If the script was hosted on a different server, the results would be different, but would probably be in a fixed range like yours.
Thats more than 50 times off of what it should be. The fundamentals of your script are all wrong, but they've been covered by other people, so now surely you can just read the figures and realise that even if your script was fundamentally correct that it doesn't work properly anyway.
Posted: Fri Dec 29, 2006 6:05 am
by neel_basu
Perhaps Its What He Need (spd.php)
==========================
Code: Select all
<?php
if(isset($_GET['kbps']))
{
?>
<?php
$kbps = round($_GET['kbps'], 2);
$ksec = round($kbps / 8, 2);
$mbps = round($kbps / 1024, 2);
$msec = round($mbps / 8, 2);
?>
<center>
<br><br>
Your Current Bandwidth is:<br><br>
<?php
if ($mbps > 1)
{
printf ("%.2f",$mbps);
echo " Mbps<br><br>";
}
else
{
printf ("%.2f",$kbps);
echo "kbps<br><br>";
}
echo "That Means You Can Download At " . $ksec . " KB/sec. FROM THIS SITE.";
?>
<br><br>
<a href="spd.php">Perform a New Test</a>
</center>
<?php
}
else
{
?>
<?php
$default_kbyte_test_size = 512;
?>
<html>
<head>
<title>Bandwidth Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<META HTTP-EQUIV="Expires" CONTENT="Fri, Jun 12 1981 08:20:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<link rel="stylesheet" href="style.css">
</head>
<body>
<center>
<br><br><br><br><br><br>
Testing Your Current Bandwidth...
<script language="JavaScript">
<!--
time = new Date();
starttime = time.getTime();
// -->
</script>
<?php
// $data_file Should Be A Junk Binary File I Tested It With a 3 MB file.
//Use Any Binary File And Just Rename It
//I Just Used A ZIpped Backup File Of Mine
$data_file = "A_Sample_binary_file.zip";
$fd = fopen ($data_file, "rb+");
$test_kbytes = $default_kbyte_test_size;
$contents = fread ($fd, $test_kbytes * 1024);
echo "<!-- $contents -->";
fclose ($fd);
?>
<script language="JavaScript">
<!--
time = new Date();
endtime = time.getTime();
if (endtime == starttime)
{downloadtime = 0
}
else
{downloadtime = (endtime - starttime)/1000;
}
kbytes_of_data = <?php echo $test_kbytes; ?>;
linespeed = kbytes_of_data/downloadtime;
kbps = (Math.round((linespeed*8)*10*1.024))/10;
nexturl = 'spd.php?kbps='+ kbps;
//alert(kbytes_of_data);
document.location.href=nexturl;
// -->
</script>
<center>
</body>
</html>
<?php
}
?>
==========================================================
== DONT TEST ON LOCALHOST UPLOAD THIS FILE AND THE BINARY FILE ==
== TO A SERVER AND THEN TEST IT ==
== IT WOULD BE GOOD IF YOU USE A BINARY FILE THATS MORE THAN 2 MB ==
==========================================================
Posted: Fri Dec 29, 2006 3:17 pm
by nickvd
You just don't seem to get it do you?
Your Current Bandwidth is:
256.00 Mbps
That Means You Can Download At 32768 KB/sec. FROM THIS SITE.
I highly doubt it...
I
HIGHLY recommend you go back to school, or perhaps buy an introduction to networking book...
Posted: Fri Dec 29, 2006 3:25 pm
by John Cartwright
Be nice guys.
Posted: Fri Dec 29, 2006 9:06 pm
by daedalus__
rofl @ 32 megabytes a second.
I second the motion for a book.
Posted: Fri Dec 29, 2006 10:57 pm
by neel_basu
nickvd wrote:You just don't seem to get it do you?
Your Current Bandwidth is:
256.00 Mbps
That Means You Can Download At 32768 KB/sec. FROM THIS SITE.
I highly doubt it...
I
HIGHLY recommend you go back to school, or perhaps buy an introduction to networking book...
I Have Told It Before That Dont do it On Your localhost
Cause When You are Testing it In Localhost No Internet Connection Is Required.
If The Binary File Is Also On localhost Then How Could It Tell It Your Speed
It Would Be Just Funny
You PLease Upload It And the Binary File Then Test It
I Dont Know A Free server Where I Can Upload It To Test If Anybody Know's Pls ell Me I'll Test It
Posted: Sat Dec 30, 2006 12:22 am
by Z3RO21
neel_basu wrote:I Have Told It Before That Dont do it On Your localhost
They are not testing on localhost but remote host just as I did. My results were about the same.
Posted: Sat Dec 30, 2006 1:48 am
by aaronhall
Here, I wrote a script that you might use instead:
Code: Select all
echo "You're connection clocks in at " . rand() . "mb/s (" . rand() . "kb/s)";
I haven't tested this, but it should work.
Posted: Sat Dec 30, 2006 4:00 am
by konstandinos
aaronhall wrote:Here, I wrote a script that you might use instead:
Code: Select all
echo "You're connection clocks in at " . rand() . "mb/s (" . rand() . "kb/s)";
I haven't tested this, but it should work.
that's quite simply the funniest post i've ever come across.