Home | Help | Site Map | Mail    
TOP SITE:   Hostdebut.com Elite quality co-located virtual servers

Dbase
» Dbase SourceCode
» Dbase Inc.
» DbaseProgrammers
» Dbase News Groups
PHP
» PHP SourceCode
» Apache Software
» PHP
MySQL
» MySQL Help
» MySQL AB
*HTML
» Validate links
JavaScript
» JavaScript Help
Networking
» Windows commands
» Subnet Math
» Port Assignments
» Telnet connect
» Wireless
Other
» Find a Monster Job
» Find a Dbase Job
» Compare your Salary
» InfoSec Pros
» $9.99 domains
» NT0 Web-Hosting
» 
Cheap Flowers Web-Hosting

SourceCode for DbaseProgrammers.com


PHP throughput tester. This script will test your connection speed to a remote site. download

//**************************************
// Author: Jeremy Martin
// PHP Throughput tester.
//**************************************

<?php echo "Calculating Download Speed. Please wait..."; ?>
<!--
<?php
$stime=time();
$size=1024;
$var=256;
$out=array();
for ($i=0;$i<=$var;$i++)
{
$out[$i]=str_repeat("#",$size);

}
$j=0;
for ($i=0;$i<=$var;$i++)
{
echo $out[$i];
$tend=time();
$totaltime = ($tend - $stime);
if (round($totaltime) != $t)
{
$t=round($totaltime);
$kbs=$kbx+$size;
$kbx=0;
}else{
$kbx=$kbx+$size;
}
if ($kbs != 0)
{
$kb[$j]=$kbs;
$ff=0;
$j=$j+1;
for ($h=0;$h<=$j;$h++)
{
$ff=$kb[$h]+$ff;
echo ".";
}
$last=($ff/$j/1024);
}
$kbs=0;
}
echo "--> READY ".round($last)." Kb/s \n ".($size*$var)." bytes Send!<br><!--";
?>

-->



PHP OpenSource | Dbase OpenSource | MySQL Help | Home | Contact

The code of the week
Members Area
Society News
DbaseProgrammers.com is currently working on a new PHP admin and Dbase admin for account administration
More Links
 
Whitepapers
ServerWatch
SQL Class
ICANN
IANA
RFC
W3C
Internet.com
NSA-SNAC
Foxnews
  Copyright DbaseProgrammers.com Aug. 2003