function main(){

$link = "https://www.ecanlitvizle.live/embed.php?kanal=idman-tv-izle";

$ch = curl_init($link);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_REFERER, 'http://dizibox5.com/');
$site = curl_exec($ch);

preg_match("/file: '(.*)'/m",$site,$veritemp);


print_r($veritemp[1]);
}


main();