$url, CURLOPT_HEADER => 0, CURLOPT_USERAGENT => $useragent, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_RETURNTRANSFER => 1, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_ENCODING => "", CURLOPT_AUTOREFERER => 1, CURLOPT_CONNECTTIMEOUT => 30, CURLOPT_TIMEOUT => 30, CURLOPT_MAXREDIRS => 5, ); curl_setopt_array($ch,$options); $result = curl_exec($ch); curl_close($ch); echo $result; } ?>