Über der Seite sendet der Livestream vom Kanal 7,
damit ich diesen per php abgreife folgendes versucht,
leider komme ich aber damit nicht zum Ergebnis, denke hier fehlt der Übergang , woran hab ich nicht gedacht?
damit ich diesen per php abgreife folgendes versucht,
leider komme ich aber damit nicht zum Ergebnis, denke hier fehlt der Übergang , woran hab ich nicht gedacht?
Code:
<?php
$ch = curl_init( );
curl_setopt ($ch, CURLOPT_URL, 'https://www.kanal7.com/canli-yayin-iframe.php');
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Maxthon/5.2.7.3000");
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_REFERER, 'https://live.inxy.co/');
curl_setopt ($ch, CURLOPT_POST, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_HEADER, 0);
$content = curl_exec($ch);
$regexp = "/video-source','(.*?)'/";
preg_match($regexp, $content, $matches);
curl_close ($ch);
header ("Location: $matches[1]");
exit();
?>