diff --git a/results.php b/results.php index 230c6e2ab..8c7b1bf3c 100644 --- a/results.php +++ b/results.php @@ -39,7 +39,7 @@ if(function_exists('file_get_contents') && ini_get('allow_url_fopen')) { curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($ch); curl_close($ch); - } else if(function_exists('fsockopen') && $fd = fsockopen($srch_host, 80)) { + } else if(function_exists('fsockopen') && $fd = @fsockopen($srch_host, 80, $errno, $errstr, 15)) { $data = ''; $header = false; fputs($fd,"GET $srch_rqst HTTP/1.0\r\n"); fputs($fd,"Host: $srch_host\r\n"); @@ -60,12 +60,14 @@ site_header('Search results'); if (!is_array($res)) { echo '