|
|
|
Re: Lot of errors on nntp.inc [message #27915 is a reply to message #27904] |
Fri, 30 September 2005 17:43 |
dany31
Messages: 9 Registered: September 2005
Karma: 0
|
Junior Member |
|
|
ok i found the function
function connect()
{
$this->fs = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout);
if (!@is_resource($this->fs)) {
$this->error = "Unable to establish connection to $this->server on port $this->port failed\nWith Error #$errno : $errstr\n";
return false;
}
if (!socket_set_blocking($this->fs, true)) {
$this->error = "Unable to make socket to blocking mode\n";
return false;
}
$ret = $this->get_return_code();
if (!$this->compare_return_codes(200, $ret) && !$this->compare_return_codes(201, $ret)) {
$this->error = "Failed to recieve proper response from NNTP Server, got ".$this->lrc."\n";
return false;
}
$ret = $this->cmd("MODE reader");
if (($this->cmd("GROUP ".$this->newsgroup) != 211)) {
$this->error = "Unable to use ".$this->newsgroup." newsgroup NTTP Msg: ".$this->lrc."\n";
return false;
} else {
$tmp = explode(" ", $this->lrc);
$this->group_na = $tmp[1];
$this->group_first = $tmp[2];
$this->group_last = $tmp[3];
}
return true;
}
I suppose that it is necessaru to replace
$this->fs = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout);
if (!@is_resource($this->fs)) {
by
$this->fs = fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout);
if (!@is_resource($this->fs)) {
but is the same errors !!
"fs" it's not recognized by php (look the errors page in benining of my topic)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|