array( 'method'=>"GET", 'header'=>"Accept-language: en\r\n" . "Cookie: foo=bar\r\n" . // check function.stream-context-create on php.net "User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" ) ); $context = stream_context_create($options); $url = 'https://www.google.de/search?q='.urlencode($url); $cont = file_get_contents($url, false, $context); preg_match_all('@(http://webcache.googleusercontent.com/.+)"@ismU', $cont, $m); if (!isset($m[1][0])) return false; $url = urldecode($m[1][0]); return file_get_contents($url, false, $context); }