Salut.
Bon j'essaye de faire un petit script pour voir le statut de serveur swat4, mais mon script me dit qu'ils sont offline alors que non.
Voilà mon script, merci.
<?php
$IP = array(
"Serveur Sawt4 1" => "68.15.143.96:10481",
"Serveur Sawt4 2" => "213.246.47.6:10481",
"Serveur Sawt4 3" => "213.246.43.164:10466",
);
while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
($fp=@fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) ? $class='online' : $class='offline';
echo $ServerName.' : '.$class.'
';
}
?>