This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Kristaps Karlsons <[email protected]> | |
* Licensed under MPL 1.1 | |
*/ | |
function mc_status($host,$port='25565') { | |
$timeInit = microtime(); | |
// TODO: implement a way to store data (memcached or MySQL?) - please don't overload target server | |
$fp = fsockopen($host,$port,$errno,$errstr,$timeout=10); |