Hey, quys! I need some help with the monitoring of the server. My PHP: $port = 34685;$host = 'mcdew.mineserv.pro';$socket = @fsockopen($host, $port);if ($socket !== false) {@fwrite($socket, "\xFE");$data = "";$data = [USER=90736681]Fread[/USER]($socket, 1024);@fclose($socket);if ($data !== false && substr($data, 0, 1) == "\xFF") {$info = explode("\xA7", mb_convert_encoding(substr($data,1), "iso-8859-1", "utf-16be"));$online = $info[1];return $online; don't work. That i must to do my monitoring can work??? P.S. Sorry for my bad english)) The IP isn't advert of my server!! Shit, i foggot to say that monitorng must display online/max players. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Did you get this to work? Looks like you have the wrong port. I use the free PHP code from here - https://github.com/xPaw/PHP-Minecraft-Query