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