API Here
If you want to parse this information for yourself, just give the script an $ip and $port (default assumed)
then pull an arraylist for $srvinfo from 0-2 to get motd, players online, and max players.
Server and port are just echoed $ip and $port. To check online status, use testserver.php.
Call testserver.php and use the GetServerStatus($ip, $port); function - echo that and done :3
Example call: http://unps-gama.tk/mcping.php?ip=unps-gama.tk&port=25565
Example:
include('http://unps-gama.tk/mcping.php?ip=$ip&port=$port')
	echo "Server:<font color='red'> " . $ip . "</font> on port:<font color='yellow'> " . $port . " </font> is: ";
	include('http://unps-gama.tk/testserver.php');
		$status = GetServerStatus($ip, $port);
			if ($status=="ONLINE") echo "<font color='green'>" . $status . "</font>\n";
			if ($status=="OFFLINE") echo "<font color='red'>" . $status . "</font>\n";
		echo "motd: " . $srvinfo[0] . "\n";
		echo "players online: " . $srvinfo[1] . "\n";
		echo "max players: " . $srvinfo[2] . "\n";
Close API

Error"; } else { $out = "\xFE"; // Hex needed for server info fwrite($fp, $out); while (!feof($fp)) { $result .= fgets($fp, 128); } fclose($fp); // Remove extra spaces between characters $result = str_replace("\x00", "", $result); $result = str_replace("\x1A", "", $result); $result = str_replace("\xFF", "", $result); $srvinfo = explode("\xA7",$result); echo "\n"; if ($status=="OFFLINE") echo "" . $status . "\n"; //echo $status . "
"; echo "\n"; echo "\n"; echo "\n"; } ?>
\n"; echo "Server: " . $ip . " on port: " . $port . " is: "; include('testserver.php'); $status = GetServerStatus($ip, $port); if ($status=="ONLINE") echo "" . $status . "
motd: " . $srvinfo[0] . "
players online: " . $srvinfo[1] . "
max players: " . $srvinfo[2] . "