Home > Simplited EPG XML 24-7 Generator
Simplited EPG XML 24-7 Generator
NOTICE: For your security, any information entered into this form will not be saved. If you need to make changes, please edit the form and resubmit. Closing the tab, window, or leaving this page will result in the loss of any entered data.
Who is this for and how to use this?
This is for anyone who has a television program that will broadcast every single day 24-7.
To use this we need to enter a title, for this example we will use "Public TV Channel 2", the description a.k.a. synopsis is about the television program, so you could enter something like "PTC2 (Public TV Channel) is the 24hr channel for local information about what's going on in the city along with the weather forecast and traffic" and the channel ID something like PTC2.
When you submit the form by pressing "Generate EPG XML", the form will give you a PHP code that you can then copy and paste into an existing PHP along with the other television programs to make up a full 24 hours i.e. 12am to 12am. This make it easy to regenerate a new xml file instead of having to manually changing the date each time.
NOTICE: Do not edit the code that is posted below, if you need to make any edits, make the edits above and then resubmit the form.
This is broken into two sections, section one is the title and then section two is the core that is what you may copy more.
Section one (1)
<channel id="">
<display-name></display-name>
</channel>
Section two (2)
<!-- ----- START OF - 12am to 12am ----- --->
<programme start="<?php $d=strtotime("yesterday"); echo date("Ymd", $d) . ""; ?>240000 -0500" stop="<?php echo "" . date("Ymd") . ""; ?>240000 -0500" channel=""><br>
<title lang=""></title> <br>
<desc lang=""></desc> <br>
</programme>
<br>
<programme start="<?php echo "" . date("Ymd") . ""; ?>240000 -0500" stop="<?php $d=strtotime("tomorrow"); echo date("Ymd", $d) . ""; ?>240000 -0500" channel=""><br>
<title lang=""></title> <br>
<desc lang=""></desc> <br>
</programme>
<!-- ----- END OF - 12am to 12am ----- --->
<br>
<br>