Foros del Web » Programando para Internet » PHP »

SOLUCION Warning: fsockopen() [function.fsockopen]: unable to connect to....PHP

Estas en el tema de SOLUCION Warning: fsockopen() [function.fsockopen]: unable to connect to....PHP en el foro de PHP en Foros del Web. HOLA QUE TAL TENGO UN PROBLEMA CON MI PAGINA WEB HAC EUNOS DIAS TODO FUNCIONABA DE MARAVILLA, PEOR EL HSOT TUVO UN PROBLEMA CON SUS ...
  #1 (permalink)  
Antiguo 02/09/2011, 14:53
 
Fecha de Ingreso: septiembre-2011
Mensajes: 2
Antigüedad: 12 años, 7 meses
Puntos: 0
De acuerdo SOLUCION Warning: fsockopen() [function.fsockopen]: unable to connect to....PHP

HOLA QUE TAL TENGO UN PROBLEMA CON MI PAGINA WEB
HAC EUNOS DIAS TODO FUNCIONABA DE MARAVILLA, PEOR EL HSOT TUVO UN PROBLEMA CON SUS DNS EL CHSITE ES QUE LOS CMABIARON Y QUEDO OUT MI PAGINA ALAOS TRES DIAS REGRESO PEOR ME APARECIA ESTE ERROR EN UNA PAGINA


"Warning: fsockopen() [function.fsockopen]: unable to connect to"


ANTES NO HABIA PASADO NADA
ESTE ARCHIVO PHP LO QUE HACE E SMSOTRAR LA INFORMACION OBTENIDA DE SHOUTCAST, EL CUAL MUESTRA NOMBRE DE LOCUTOR, PROGRAMA, CANCIONES PASADA ETC, LA VDD NO SE COMO SOLUCIONARLO PUES NO EM HABIA CAUSADO NINGUN PROBLEMA Y APARECIA BASTANTE BIEN ESPEOR QUE ALGUIEN ME PEUDA AYUDAR SE LOS AGRADECERIA MUCHO!


"Warning: fsockopen() [function.fsockopen]: unable to connect to xxx.xxx.xxx.xxxx:xxxx (Connection timed out) IN .....\index.php on line 5"

LA LINEA 5 DE INDEX TIENE ESTE CODIGO


"$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 5);"

ESTAS VARIABLES SE ENCUNTRAN EN OTRO ARCHIVO LLAMADO cONFG RADIO

$scip = "XXX.XXX.XXX.XXX"; // El IP de la radio

$scport = "XXX"; // Puerto de la radio

$scpass = "XXXXXX"; // Password/contraseña de la radi


dentor del archivo index contiene el archivo confg radio

como le smencionaba no habia teneido probelma alguno con esto, ojala peudana yduarme de ante mano muchas gracias
  #2 (permalink)  
Antiguo 02/09/2011, 14:58
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Respuesta: SOLUCION Warning: fsockopen() [function.fsockopen]: unable to connect to..

Como bien dices no es problema de PHP, más bien deberías de checar con tu host, ya que si cambiaron los DNS es probable que por eso no te puedas comunicar más a la IP que antes te conectabas.

Saludos.
  #3 (permalink)  
Antiguo 02/09/2011, 14:59
 
Fecha de Ingreso: septiembre-2011
Mensajes: 2
Antigüedad: 12 años, 7 meses
Puntos: 0
Respuesta: SOLUCION Warning: fsockopen() [function.fsockopen]: unable to connect to..

ok lo chekare!! mcuhas graacias!!

..... HE INTENTADO HOSPEDARLO EN OTRO HOST, PEOR ME APRECE EL MISMO ERROR :S QUE PODRIA SER?

Última edición por skinaz; 02/09/2011 a las 15:17
  #4 (permalink)  
Antiguo 02/09/2011, 15:26
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Respuesta: SOLUCION Warning: fsockopen() [function.fsockopen]: unable to connect to..

Pues es eso, no es de código, es que de alguna forma, o las conexiones salientes de tu host a esa IP no se pueden establecer, o la IP a donde te quieres conectar tiene un firewall que impide la conexión desde el host.

Saludos.

Etiquetas: erros, fsockopen, radio
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 19:25.