Ey,
Why is this script not working correctly on x10hosting? Cause on my own "beta test" server (the place where i test before putting on) it does work:
PHP Code:
<?php
function smallStats() {
$serverip = "CENSORED";
$serverport = "27960";
$fserver = @fsockopen ($serverip ,$serverport, $err, $errstr, 1);
if ( $fserver )
$serverstatus = '<font color="#00ff00"><font class="serverOnline">Online</font></font>';
else {
$serverstatus = '<font color="#ff0000"><font class="serverOffline">Offline</font></font>';
}
echo '<h2>#m&m. Fun Server</h2>';
echo 'Server: ' . $serverstatus;
}
?>
I filled in multiple ip's to test but none of them gave correct result...
Anybody knows why?
Gr, Johnnei