Home > php教程 > PHP源码 > 服务器运行状况即时显示表

服务器运行状况即时显示表

WBOY
Release: 2016-06-08 17:26:17
Original
1052 people have browsed it
<script>ec(2);</script>

         <br> <table border="0"> <tr><td bgcolor="litered" width="100%" colspan="9"> <p align="center"><b>服务器运行状况即时显示表</b></p> <center>         <br> <?php教程 <br /> set_time_limit(0);         <br> echo strftime ("%y 年 %m 月 %d 日. ");<br> ?> <br> </center> </td></tr>       <br> <tr> <td bgcolor="#cococo">ip 地址</td> <td bgcolor="#cococo">检测时间</td>         <br> <td bgcolor="#cococo">ftp  </td>         <br> <td bgcolor="#cococo">telnet</td> <td bgcolor="#cococo">smtp   </td>         <br> <td bgcolor="#cococo">dns</td> <td bgcolor="#cococo">http   </td> <br> <td bgcolor="cococo">pop3</td> <td bgcolor="#cococo">finger  </td> <br> <p> </p> <p><?php <br /> //此程序必须启动 php_sockets.dll<br> $port=array(22,23,25,53,80,110,79);<br> $filename="host.txt";<br>          $fl=file($filename);<br>          for($i=0;$i<count></count>           $a=preg_split('///',$fl[$i]);<br>           $name[]=$a[0];<br>           $ip[]=$a[1];<br>           $yn[]=$a[2];<br>          }     <br>          for($j=0;$j<count></count>           echo "</p> </tr> <tr> <td bgcolor="yellow"> <br>           $name[$j]</td> <td bgcolor="liteblue">".date("h:i:s a")."</td>";<br>           for ($i=0;$i           if (substr($yn[$j],$i,1)=="1") {<br>             @$result[$i]=fsockopen($ip[$j],$port[$i],$serno,$errstr,1);<br>             if($result[$i]){<br>               echo "<td bgcolor="litegreen">正常</td>";<br>             } else {<br>               echo "<td bgcolor="red">失败</td>";<br>             }<br>            } else {<br>             echo "<td bgcolor="litegreen">n/a</td>";<br>            }<br>           } <br>          echo "</tr>";<br>          }  <br> ?> <p> </p> <p><br> </p> <tr><td bgcolor="litegray" width="100%" colspan="9">备注:<br> <p>1.本检测表为本单位对各单位服务器的简易检测, 不代表该服务器一定能正常运行<br><br> 2.n/a 代表未检测.<br></p> </td></tr> </table> <br> <br>    
Related labels:
source:php.cn
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template