Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/09/2009, 04:43
Avatar de blekia
blekia
 
Fecha de Ingreso: julio-2009
Mensajes: 204
Antigüedad: 17 años, 2 meses
Puntos: 6
Respuesta: Problema con fsockopen y socket_get_status

podrias utilizar:

stream_set_timeout ( resource stream, int seconds, int microseconds )

Código PHP:
$connect = fsockopen("udp://".$ip, $puerto, $errno, $errstr, 10);
stream_set_timeout ( $connect, 10, 0 );