Ver Mensaje Individual
  #12 (permalink)  
Antiguo 06/07/2007, 19:27
rvargas
 
Fecha de Ingreso: diciembre-2002
Ubicación: d.f
Mensajes: 79
Antigüedad: 21 años, 4 meses
Puntos: 0
Re: fsockopen Shoutcast Por favor ayuda

Por último prueba el siguiente script conectandote a google, si logras conectarte quiere decir posiblemente que el problema lo tiene tu hosting.


<?php
$fp = fsockopen("www.google.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET / HTTP/1.1\r\n";
$out .= "Host: www.google.com\r\n";
$out .= "Connection: Close\r\n\r\n";

fwrite($fp, $out);
while (!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);
}
?>
Por último prueba el siguiente script conectandote a google, si logras conectarte quiere decir posiblemente que el problema lo tiene tu hosting,


<?php
$fp = fsockopen("www.google.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET / HTTP/1.1\r\n";
$out .= "Host: www.google.com\r\n";
$out .= "Connection: Close\r\n\r\n";

fwrite($fp, $out);
while (!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);
}
?>