added tips to lamer.bash help
[mirrors/Programs.git] / php / skripty / service_checker.php
CommitLineData
8de51304
H
1<html>\r
2<h1>TCP Service Checker</h1>\r
3<form>\r
4 Host: <input type="text" name="host"><br />\r
5 Port: <input type="text" name="port"><br />\r
6 Timeout: <input type="text" name="timeout" value="3"><br />\r
7</form>\r
8\r
9<pre><?php\r
10\r
11@$fp = fsockopen ("127.0.0.1", 80, &$errno, &$errstr, 5);\r
12 if (!$fp)\r
13 { echo "<font color=\"#FF0000\"> UNRECHEABLE <br> ".$errno." - ".$errstr."</font>"; }\r
14 else\r
15 { echo "<font color=\"#00FF00\"> RECHEABLE </font>"; }\r
16\r
17?></pre>\r
18\r
19</html>\r
This page took 0.356133 seconds and 4 git commands to generate.