$ch = curl_init();  
    curl_setopt($ch, CURLOPT_URL, $url);  
    $userAgent = 'Googlebot/2.1 (http://www.googlebot.com/bot.html)'; 
    curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); 
    curl_setopt($ch, CURLOPT_URL, $url); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    $data = curl_exec ($ch); 
    curl_close ($ch);