Parašė Poker· 2008 Geg. 20 15:05:57
#1
Kaip reikia padaryt,jog paniale rodytu,be remeliu?Viska ishbandziau ka tik sugalvojau,bet nieko gero.
Kodas:
openside("");
error_reporting(0);
$IP = array(
"<b>Login:</b> " => "78.61.56.28:2106",
" <b>Game:</b> " => "78.61.56.28:7777",
); while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo($ServerName);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<font color='green'>Online</font>");
fclose($fp);
}
else {
echo ("<font color='red'>Offline</font>");
}
}
closeside();
Redagavo Poker· 2008 Geg. 20 15:05:13