Curl zor bişey değil hocam. File_get_contents yerine curl fonksiyonunu yazıyorsunuz. Size fonksiyon örneğini vereyim. Diğer optleri kendiniz phpnetden de öğrenebilirsiniz.




function curl($url){
$userAgent = 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 0);
curl_setopt($curl, CURLOPT_REFERER, 'http://www.google.com');
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_USERAGENT, $userAgent);
$data = curl_exec($curl);
curl_close($curl);
return str_replace(array("\n","\t","\r"), null, $data);
}



$Kaynak = curl("https://www.hepsiburada.com/");
preg_match_all(pattern, subject, matches);

?>