hola. tnego el siguiente codigo:
<?php
function testport($url, $port)
{
$servidor_checkport = fsockopen( $url , $port , $errno, $errstr, 1); if (!$servidor_checkport)
{
$servertest= '<b><font color="#FF0000">Offline</font></b><br/>';
echo $errno . $errstr;
}
else
{
$servertest= '<b><font color="#339966">Online</font></b><br/>';
}
return $servertest;
}
$testingport = testport("www.web1.net",80);
echo $testingport;
$testingport = testport("www.web2.net",80);
echo $testingport;
$testingport = testport("ip shoutcastserver",80);
echo $testingport;
$testingport = testport("ip shoutcastserver",8010);
$testingport;
?>
la cuestion es que todos los hosts estan funcionando como deben, pero al ultimo no puedo conectarme y arroja un error que la verdad, ya me tiene cansado :S
Online
Online
Online
Warning: fsockopen() [function.fsockopen]: unable to connect to ip shoutcastserver:8010 (Connection timed out) in /home/radioao/public_html/test/test.php on line 11
110Connection timed outOffline
alguien sabe por que pasa????..... tengo 2 servidores, en uno puedo conectarme a todos los servers con ese codigo, en el otro, falla la ultima conexion :S :@
necesito ayuda, por favor.
desde ya, muchas gracias.