Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. <?php
  2. ini_set('max_execution_time', 300);
  3. $errmsg_arr = array();
  4. $errflag = false;
  5. $link;
  6. include ('simple_html_dom.php');
  7. $html = file_get_html("http://www.mysite.com/get-listing.php?channels=" . $channel . "&id=" . $my_id);
  8.  
  9. $time1 = $html_two->find('span[id=time1]',0)->plaintext;
  10. $time1i = strtotime($time1);
  11. $title1 = $html_two->find('span[id=title1]',0)->plaintext;
  12.  
  13. $hours = $hoursMinutes[0];
  14. $minutes = $hoursMinutes[1];
  15.  
  16. $program_list[$count]['start_time1'] = date('YmdHis',$time1i);
  17. $program_list[$count]['title1'] = $title1;
  18.  
  19. $xml .= "
  20. <channel id='" . $my_id. " " . $channel . "'>";
  21. $xml .= "
  22. <display-name>" . $my_id. " " . $channel;
  23. $xml .= "</display-name>";
  24. $xml .= "
  25. <programme channel='" . $my_id. " " . $channel . "' start='" . $program_list[$i]['start_time1'] . "' stop='" . $program_list[$i]['end_time1'] . "'>";
  26. $xml .= "
  27. </programme>";
  28. $xml .= "
  29. </channels>";
  30. echo $xml;
  31. ?>
  32.  
  33. $timestamp = date("Y-m-d H:i:s");
  34. $tomorrow = strtotime($timestamp . ' + 1 day'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement