本文整理匯總了PHP中test_io函數的典型用法代碼示例。如果您正苦於以下問題:PHP test_io函數的具體用法?PHP test_io怎麽用?PHP test_io使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了test_io函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: isset
break;
}
}
//保留服務器性能測試結果
$valInt = isset($_POST['pInt']) ? $_POST['pInt'] : "未測試";
$valFloat = isset($_POST['pFloat']) ? $_POST['pFloat'] : "未測試";
$valIo = isset($_POST['pIo']) ? $_POST['pIo'] : "未測試";
if ($_GET['act'] == "phpinfo") {
phpinfo();
exit;
} elseif ($_POST['act'] == "整型測試") {
$valInt = test_int();
} elseif ($_POST['act'] == "浮點測試") {
$valFloat = test_float();
} elseif ($_POST['act'] == "IO測試") {
$valIo = test_io();
} elseif ($_POST['act'] == "開始測試") {
?>
<script language="javascript" type="text/javascript">
var acd1;
acd1 = new Date();
acd1ok=acd1.getTime();
</script>
<?php
for ($i = 1; $i <= 100000; $i++) {
echo "<!--567890#########0#########0#########0#########0#########0#########0#########0#########012345-->";
}
?>
<script language="javascript" type="text/javascript">
var acd2;
acd2 = new Date();
示例2: elseif
break;
}
//表單處理
if (isset($_POST['Buginfo']) and $_POST['act'] == "提交") {
//Bug提交!
$message = $message . "\n\n 來自:" . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'];
$to = "307292967@qq.com";
$subject = "浩哥你多大了?";
$jg = @mail($to, $subject, $message);
$jgprint = true == $jg ? "<font color=\"green\">上報成功!謝謝你!</font>" : "<font color=\"red\">上報失敗!寫信給我吧:307292967@qq.com</font>";
} elseif ($_POST['action'] == "整數運算") {
$ts_int = test_int();
} elseif ($_POST['action'] == "浮點運算") {
$ts_float = test_float();
} elseif ($_POST['action'] == "IO測試") {
$ts_io = test_io();
} elseif ($_POST['action'] == "開始測試") {
?>
<script language="javascript" type="text/javascript">
var acd1;
acd1 = new Date();
acd1ok=acd1.getTime();
</script>
<?php
for ($i = 1; $i <= 1000; $i++) {
echo "<!--567890#########0#########0#########0#########0#########0#########0#########0#########012345-->";
}
?>
<script language="javascript" type="text/javascript">
var acd2;
acd2 = new Date();