diff options
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class index dc2a3e4..0ee799a 100644 --- a/it_url.class +++ b/it_url.class @@ -206,7 +206,7 @@ function is_reachable($timeout = 5) { $result = false; - if ($fp = @fsockopen($this->realhostname, $this->port, $errno, $errstr, $timeout)) + if ($fp = @fsockopen($this->realhostname, $this->port, $dummy_errno, $dummy_errstr, $timeout)) { fputs($fp, "GET /$this->path HTTP/1.0\r\nHost: $this->realhostname\r\nUser-Agent: ITools\r\n\r\n"); $line = fgets($fp, 128); @@ -248,7 +248,7 @@ function get($p=null, $timeout=5) if ($url->protocol == 'http') { - if ($fp = @fsockopen($url->realhostname, $url->port, $errno, $errstr, $p['timeout'])) + if ($fp = @fsockopen($url->realhostname, $url->port, $dummy_errno, $dummy_errstr, $p['timeout'])) { # urlencode data pairs if is array if (is_array($p['data'])) |