山东电视台php

<-?php
$id = isset($_GET['id'])?$_GET['id']:'sdtv';
/*山东卫视id=sdtv;齐鲁id=qlpd;文旅id=yspd;综艺id=zypd;生活id=shpd;新闻id=ggpd;农科id=nkpd;体育id=typd;少儿id=sepd;国际id=gjpd;居家购物id=gwpd;*/
preg_match('|iqilu/(.*?).m3u8|',file_get_contents('http://v.iqilu.com/live/'.$id.'/'),$p);
header('location:https://livealone302.iqilu.com/iqilu/'.$p[1].'.m3u8');
//echo 'https://livealone302.iqilu.com/iqilu/'.$p[1].'.m3u8';
?->