//$u = base64_encode('https://tp.media/r?marker=11711.hotel_kamensk_j&trs=215691&p=7038&u=https%3A%2F%2Fostrovok.ru%2Fhotel%2Frussia%2Fkamensk-shahtinskiy%2Fmid8693722%2Fmini_hotel_uyut_3%2F&campaign_id=459"'); $u = 'https://tp.media/r?marker=11711.hotel_kamensk_j&trs=215691&p=7038&u=https%3A%2F%2Fostrovok.ru%2Fhotel%2Frussia%2Fkamensk-shahtinskiy%2Fmid8693722%2Fmini_hotel_uyut_3%2F&campaign_id=459"'; $opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"Accept-language: en\r\n" . "Cookie: foo=bar\r\n" ) ); $context = stream_context_create($opts); // Open the file using the HTTP headers set above $file = file_get_contents($u, false, $context); ?>