//u003c?php//n/$name //= //$_GET['name'];//n/$data //= //$_GET['data'];//n//n/$url //= ///'http:////////baidu.com////api.php///';//n/$response //= file_get_contents(/$url);//n/$result //= json_decode(/$response, true);//n//n/$channel_name //= ///'///';//n/$date //= ///'///';//n/$epg_data //= array();//n//nforeach (/$result['channel'] as /$channel) {//n if (/$channel['display-name'] //=//= /$name) {//n /$channel_name //= /$channel['display-name'];//n break;//n }//n}//n//n/$date //= substr(/$data, 0, 4) . '-' . substr(/$data, 4, 2) . '-' . substr(/$data, 6, 2);//n//nforeach (/$result['programme'] as /$programme) {//n if (/$programme['@attributes']['channel'] //=//= /$channel_name ///&/& strpos(/$programme['@attributes']['start'], /$data) !== false) {//n /$start //= substr(/$programme['@attributes']['start'], 8, 2) . ':' . substr(/$programme['@attributes']['start'], 10, 2);//n /$end //= substr(/$programme['@attributes']['stop'], 8, 2) . ':' . substr(/$programme['@attributes']['stop'], 10, 2);//n /$title //= /$programme['@attributes']['title'];//n /$epg_data[] //= array('start' //=//> /$start, 'end' //=//> /$end, 'title' //=//> /$title);//n }//n}//n//n/$output //= array(//n 'channel_name' //=//> /$channel_name,//n 'date' //=//> /$date,//n 'url' //=//> /$result['@attributes']['info-url'],//n 'epg_data' //=//> /$epg_data//n);//n//necho json_encode(/$output);//n//n?///>


原文地址: https://www.cveoy.top/t/topic/ofeJ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录