Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/02/2008, 15:17
DjCommand
 
Fecha de Ingreso: enero-2007
Mensajes: 79
Antigüedad: 17 años, 4 meses
Puntos: 1
error fgets()

buenas, estoy aciendo 1 codigo para ver el estado de mis contactos, y cuando llego a esta linea me da error:

Código PHP:
    function _connect($server "messenger.hotmail.com")
    {
        
$this->_socket fsockopen($server1863);
        
$this->_send_data("VER 0 MSNP8");

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

Warning: fgets(): supplied argument is not a valid stream resource in /home2/comand/public_html/msn/includes/class.php on line 36

Warning: feof(): supplied argument is not a valid stream resource in /home2/comand/public_html/msn/includes/class.php on line 35

y esa linea es:

while (!feof($this->_socket)) {
$data = substr(fgets($this->_socket, 1024), 0, -2);

Alguna idea?