Hey,
kennt einer von euch einen guten PHP Script (Kein Plugin) um die Slot anzahl von einem Minecraft Server anzuzeigen?
Ich habe
$fp = fsockopen($ipmc, $portmc, $errno, $errstr, 4);
fwrite($fp, "\xFE");
$answer = fread($fp, 256);
$text = substr($answer, 3);
$text = mb_convert_encoding($text, 'auto', 'UCS-2');
$parts = explode("\xA7", $text);
Aber nach einigen reloads kommt:
Warning: fsockopen() [function.fsockopen]: Sorry, an internal error occured. Please report this immediately! (2) in /users/***/index.php on line 14
Warning: fsockopen() [function.fsockopen]: unable to connect to minecraft-community.ch:25565 (Unknown error) in /users/***/index.php on line 14
Warning: fwrite() expects parameter 1 to be resource, boolean given in /users/***/index.php on line 15
Warning: fread() expects parameter 1 to be resource, boolean given in /users/***/index.php on line 16
08:57:14