PHP - cURL get's old version of google -


when getting google site in curl php old google page (the 1 blackbar , weird buttons). there way google appears on google.com? code:

function file_get_contents_curl($url, $proxy) {   $ch = curl_init();    curl_setopt($ch, curlopt_autoreferer, true);   curl_setopt($ch, curlopt_returntransfer, 1);   curl_setopt($ch, curlopt_proxy, $proxy);   curl_setopt($ch, curlopt_url, $url);   curl_setopt($ch, curlopt_followlocation, true);           $data = curl_exec($ch);   curl_close($ch);    return $data; }  echo file_get_contents_curl('https://www.google.com/', 'proxy:8080'); 

thanks, if there no way ok weird looking google.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -