Código PHP:
function _connect($server = "messenger.hotmail.com")
{
$this->_socket = fsockopen($server, 1863);
$this->_send_data("VER 0 MSNP8");
while (!feof($this->_socket)) {
$data = substr(fgets($this->_socket, 1024), 0, -2);
$this->_process_data($data);
}
}
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?