Parašė Aggro· 2010 Kov. 14 14:03:25
#1
Prasau jei kas zino kokiu
php-fusion v6 scriptu susija su l2 pvz kaip kiek online arba server status prasau ydekit nes as turiu viena toki server stutus scripta bet jis man visada rodo offline
<?
error_reporting(0);
$IP = array(
"<br><b>Login:</b>" => "78.58.81.101:2106",
"<br><b>Game:</b>" => "78.58.81.101:7777",
);while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo($ServerName);
$time = 0;
$time = round(microtime(), 3);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
$time2 = round(microtime(), 3);
$ping = ($time2 - $time)*100;
echo("<font color='green'> Online</font> (ping: ".$ping."ms)<br />");
fclose($fp);
}else {
echo ("<font color='red'> Offline</font>");
}
}
echo "</b>";
?>
ip ir portai surasyti gerai gal zino tada bent kas nors kaip sutvarkyt kad rodytu normalei ?
Redagavo Aggro· 2010 Kov. 14 14:03:47