Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/10/2010, 06:32
EvilDoll
 
Fecha de Ingreso: octubre-2010
Mensajes: 2
Antigüedad: 13 años, 6 meses
Puntos: 0
Ayuda con script para server on/off

hola gente.


me podrian orientar o decir porque el siguiente script no me funciona..


<?php
print'<table width="100">';
$server = "aqui. pongo.mi.ip";
$portg = "7777";
$portl = "2106";
$timeout = "5";

if ($server and $port and $timeout) {
$game = @fsockopen($server, $portg, $portl, $errno, $timeout);
$login = @fsockopen($server, $portl, $portl, $errno, $timeout);
}
if($login) { print'<p>Login:<font color="#00FF00"><strong> OnLine</strong></font></p>'; }
else { print'<p>Login:<font color="#FF0000"><strong> OffLine</strong></font></p>'; }

if($game) { print'<p>Server:<font color="#00FF00"><strong> OnLine</strong></font></p>'; }
else { print'<p>Server:<font color="#FF0000"><strong> OffLine</strong></font></p>'; }
print'</table>';
?>


saludos y gracias