Jump to content

Recommended Posts

Posted

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>";
	  }
?>

  • Like 1
Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock