Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('max_execution_time', 300);
- $errmsg_arr = array();
- $errflag = false;
- $link;
- include ('simple_html_dom.php');
- $html = file_get_html("http://www.mysite.com/get-listing.php?channels=" . $channel . "&id=" . $my_id);
- $time1 = $html_two->find('span[id=time1]',0)->plaintext;
- $time1i = strtotime($time1);
- $title1 = $html_two->find('span[id=title1]',0)->plaintext;
- $hours = $hoursMinutes[0];
- $minutes = $hoursMinutes[1];
- $program_list[$count]['start_time1'] = date('YmdHis',$time1i);
- $program_list[$count]['title1'] = $title1;
- $xml .= "
- <channel id='" . $my_id. " " . $channel . "'>";
- $xml .= "
- <display-name>" . $my_id. " " . $channel;
- $xml .= "</display-name>";
- $xml .= "
- <programme channel='" . $my_id. " " . $channel . "' start='" . $program_list[$i]['start_time1'] . "' stop='" . $program_list[$i]['end_time1'] . "'>";
- $xml .= "
- </programme>";
- $xml .= "
- </channels>";
- echo $xml;
- ?>
- $timestamp = date("Y-m-d H:i:s");
- $tomorrow = strtotime($timestamp . ' + 1 day'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement