function fileGetContents($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
$content = fileGetContents('http://unique-life.kiev.ua/thanks.html');
<script>
function newDoc() {
window.location.assign("http://v5.master-css.com/Grisha969/LoveStartUp/thank.html")
}
</script>