服务器运行状况即时显示表
Release: 2016-06-08 17:26:17
Original
1052 people have browsed it
<script>ec(2);</script>
服务器运行状况即时显示表
set_time_limit(0);
echo strftime ("%y 年 %m 月 %d 日. ");
?>
|
ip 地址 |
检测时间 |
ftp |
telnet |
smtp |
dns |
http |
pop3 |
finger |
//此程序必须启动 php_sockets.dll
$port=array(22,23,25,53,80,110,79);
$filename="host.txt";
$fl=file($filename);
for($i=0;$i
$a=preg_split('///',$fl[$i]);
$name[]=$a[0];
$ip[]=$a[1];
$yn[]=$a[2];
}
for($j=0;$j
echo "
$name[$j] |
".date("h:i:s a")." | ";
for ($i=0;$i
if (substr($yn[$j],$i,1)=="1") {
@$result[$i]=fsockopen($ip[$j],$port[$i],$serno,$errstr,1);
if($result[$i]){
echo "正常 | ";
} else {
echo "失败 | ";
}
} else {
echo "n/a | ";
}
}
echo "
";
}
?>
备注:
1.本检测表为本单位对各单位服务器的简易检测, 不代表该服务器一定能正常运行
2.n/a 代表未检测.
|
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
-
2024-10-22 09:46:29
-
2024-10-13 13:53:41
-
2024-10-12 12:15:51
-
2024-10-11 22:47:31
-
2024-10-11 19:36:51
-
2024-10-11 15:50:41
-
2024-10-11 15:07:41
-
2024-10-11 14:21:21
-
2024-10-11 12:59:11
-
2024-10-11 12:17:31