Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/02/2008, 15:31
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: error fgets()

Te esta diciendo que lo que tu tienes en $this->_socket es incorrecto, prueba este codigo:
Código PHP:
function _connect($server "messenger.hotmail.com")
    {
        
$this->_socket fsockopen($server1863$errno$errstr);
        if( !
$this->_socket ) {
                die( 
"Error de conexión ($errno): $errstr" );
        }
        
$this->_send_data("VER 0 MSNP8");

        while (!
feof($this->_socket)) {
            
$data substr(fgets($this->_socket1024), 0, -2);
            
$this->_process_data($data);
        }
    } 
Saludos.