Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Share] php script speedtest
#1
kreasikan lagi biar cakep
PHP Code:
<?php  
if(isset($_GET['kbps']))  
{  
?>  
<?php  
        $kbps 
round($_GET['kbps'], 2);  
        
$ksec round($kbps 82);  
        
$mbps round($kbps 10242);  
        
$msec round($mbps 82);  
?>  
<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&nbsp;THIS&nbsp;SITE.";  
?>  
<br><br>  
<a href="speed.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 = 'speed.php?kbps='+ kbps;  
    //alert(kbytes_of_data);  
    document.location.href=nexturl;  
// -->  
</script>  
<center>  
</body>  
</html>  
<?php  
}  
?>
Reply
#2
mantep nih skripnya meskipun interfacenya jauh sama yang punya spidol...
Reply
#3
ya tinggal percantik aja bro itu script intinya
Reply
#4
keren nih,, ane ijin coba om..
Reply
#5
lanjutkan kata sby wkwkwkwk
Reply
#6
manteb nih script untuk dikembangin newbie seperti ane ketawaaa
edogawa.12, proud to be a member of ForNesia Family since Mar 2014.
Reply
#7
Super simple perlu di kembangkan ...
AKU RAPOPO MENENGO
[Image: computerstress.gif]
Reply
#8
lumayan buat nambah nambah project ane
Reply
#9
mantap,, ane coba dulu ketawaaa
didi.manoso, proud to be a member of ForNesia Family since Mar 2014.
Reply
#10
oke gan kangsung ke TKP.. hehehe...
Reply
#11
Lumayan dah nambah" source code .
makasih om jempol:
Wibby, proud to be a member of ForNesia Family since Jun 2014.
Reply
#12
(03-09-2014, 11:16 AM)chainX Wrote: [Only registered and activated users can see links Click here to register]
[Only registered and activated users can see links Click here to register]
[Image: coollogo_com_5514825.gif]
Reply
#13
waktu itu ane sempet nyari gak dapet, akhirnya dapet juga dimari
thanks gan..
sekalian mau bereksperimen lagi buat dikembangin hehe....
Reply
#14
nambahin aja, itu ada kode
Code:
$data_file = "A_Sample_binary_file.zip";
brarti harus ada file yg namanya "A_Sample_binary_file.zip" , ukurannya kira2 3mb klo ngikutin komen di script
Reply
#15
apa ga beratin loadpage ??
Reply
  


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Share] Webssh Script Gratis Buat Jualan SSH Van!shment 1 776 01-23-2019, 10:07 AM
Last Post: zeph
  [Info] kumpulan script premium free Brandal 16 3,454 11-19-2015, 10:03 PM
Last Post: loji