php echo $valIo;?>" />

<a name="w_networkspeed"></a>
<!--网络速度测试-->
<table>
<tr><th colspan="3">网络速度测试</th></tr>
<tr>
<td width="19%" align="center"><input name="act" type="submit" class="btn" value="开始测试" />
<br />
向客户端传送1000k字节数据<br />
带宽比例按理想值计算
</td>
<td width="81%" align="center" >

<table align="center" width="550" border="0" cellspacing="0" cellpadding="0" >
<tr >
<td height="15" width="50">带宽</td>
<td height="15" width="50">1M</td>
<td height="15" width="50">2M</td>
<td height="15" width="50">3M</td>
<td height="15" width="50">4M</td>
<td height="15" width="50">5M</td>
<td height="15" width="50">6M</td>
<td height="15" width="50">7M</td>
<td height="15" width="50">8M</td>
<td height="15" width="50">9M</td>
<td height="15" width="50">10M</td>
</tr>
<tr>
<td colspan="11" class="suduk" ><table align="center" width="550" border="0" cellspacing="0" cellpadding="0" height="8" class="suduk">
<tr>
<td class="sudu" width="<?php
if(preg_match("/[^\d-., ]/",$speed))
{
echo "0";
}
else{
echo 550*($speed/11000);
}
?>"></td>
<td class="suduk" width="<?php
if(preg_match("/[^\d-., ]/",$speed))
{
echo "550";
}
else{
echo 550-550*($speed/11000);
}
?>"></td>
</tr>
</table>
</td>
</tr>
</table>
<?php echo (isset($_GET['speed']))?"下载1000KB数据用时 <font color='#cc0000'>".$_GET['speed']."</font> 毫秒,下载速度:"."<font color='#cc0000'>".$speed."</font>"." kb/s,需测试多次取平均值,超过10M直接看下载速度":"<font color='#cc0000'>&nbsp;未探测&nbsp;</font>" ?>

</td>
</tr>
</table>

<a name="w_MySQL"></a>

<!--MySQL数据库连接检测-->

<table>

<tr><th colspan="3">MySQL数据库连接检测</th></tr>

<tr>

<td width="15%"></td>

<td width="60%">

地址:<input type="text" name="host" value="localhost" size="10" />

端口:<input type="text" name="port" value="3306" size="10" />

用户名:<input type="text" name="login" size="10" />

密码:<input type="password" name="password" size="10" />

</td>

<td width="25%">

<input class="btn" type="submit" name="act" value="MySQL检测" />

</td>

</tr>

</table>

<?php

if ($_POST['act'] == 'MySQL检测') {

if(function_exists("mysql_close")==1) {

$link = @mysql_connect($host.":".$port,$login,$password);

if ($link){

echo "<script>alert('连接到MySql数据库正常')</script>";

} else {

echo "<script>alert('无法连接到MySql数据库!')</script>";

}

} else {

echo "<script>alert('服务器不支持MySQL数据库!')</script>";

}

}

?>

<a name="w_function"></a>

<!--函数检测-->

<table>

<tr><th colspan="3">函数检测</th></tr>

<tr>

<td width="15%"></td>

<td width="60%">

请输入您要检测的函数:

<input type="text" name="funName" size="50" />

</td>

<td width="25%">

<input class="btn" type="submit" name="act" align="right" value="函数检测" />

</td>

</tr>

<?php

if ($_POST['act'] == '函数检测') {

echo "<script>alert('$funRe')</script>";

}

?>

</table>

<a name="w_mail"></a>

<!--邮件发送检测-->

<table>

<tr><th colspan="3">邮件发送检测</th></tr>

<tr>

<td width="15%"></td>

<td width="60%">

请输入您要检测的邮件地址:

<input type="text" name="mailAdd" size="50" />

</td>

<td width="25%">

<input class="btn" type="submit" name="act" value="邮件检测" />

</td>

</tr>

<?php

if ($_POST['act'] == '邮件检测') {

echo "<script>alert('$mailRe')</script>";

}

?>

</table>

</form>



<table>
<tr>
<td class="w_foot"><A HREF="http://www.Yahei.Net" target="_blank"><?php echo $title.$version;?></A></td>
<td class="w_foot"><?php $run_time = sprintf('%0.4f', microtime_float() - $time_start);?>Processed in <?php echo $run_time?> seconds. <?php echo memory_usage();?> memory usage.</td>
<td class="w_foot"><a href="#w_top">返回顶部</a></td>
</tr>
</table>

</div>

</body>


Prev | Next
Pg.: 1 ... 4 5 6 7 8 9 10


Back to home | File page

Subscribe | Register | Login | N