Brian Posted January 28, 2013 Posted January 28, 2013 Was missing such a script on Maxcheaters so wrote the script. Simple PHP script for checking if service is running behind a port. <?php $server = "1.2.3.4"; $port = "2106"; $port2 = "7777"; $timeout = "1"; if ($server and $port and $timeout) { $auth= @fsockopen("$server", $port, $errno, $errstr, $timeout); $game= @fsockopen("$server", $port2, $errno, $errstr, $timeout); } if($auth) { echo "<font color=\"#ddd\">Auth is <font color=\"#1AFF00\">Online</font> - "; } else { echo "<font color=\"#ddd\"> Auth is <font color=\"#FF0000\">Offline</font> - "; } if($game) { echo "L2Server is <font color=\"#1AFF00\">Online</font></font>"; } else { echo "L2Server is <font color=\"#FF0000\">Offline</font></font>"; } ?> 1
Recommended Posts