https://www.whatismybrowser.com/detect/what-http-h eaders-is-my-browser-sending
<?php
$fraze="lékárna praha"; // tutaj pořešit encoding
$url = "https://www.google.cz/search?".urlencode($fraze)."&start=0";
$options = array(
'http'=>array(
'method'=>"GET",
'header'=>"Accept-language: en\r\n" .
"Cookie: foo=bar\r\n" .
"User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0"
)
);
$context = stream_context_create($options);
$html = file_get_contents($url, false, $context);
?>