MESSAGE LIBRARY

podaudio iTunes podcast available click here getElementsByTagName() -- Gets elements by tagname // nodeValue : The value of this node, depending on its type. // Load XML File. You can use loadXML if you wish to load XML data from a string $objDOM = new DOMDocument(); // Location of your xml file, make sure the path is correct $objDOM->load("media/podcasts/audio/audio_feed.xml"); // Getting the items block of the RSS feed $items = $objDOM->getElementsByTagName("item"); // For each note tag, parse the document and get values for tasks and details tag. foreach( $items as $value ) { //Title of podcast $titles = $value->getElementsByTagName("title"); $title = $titles->item(0)->nodeValue; //Subtitle of podcast $subtitles = $value->getElementsByTagName("subtitle"); $subtitle = $subtitles->item(0)->nodeValue; //Description of podcast $descrips = $value->getElementsByTagName("description"); $descrip = $descrips->item(0)->nodeValue; //Author of podcast $authors = $value->getElementsByTagName("author"); $author = $authors->item(0)->nodeValue; //Full path to podcast file $guids = $value->getElementsByTagName("guid"); $guid = $guids->item(0)->nodeValue; //Using this because of the force download script. Trimming the first 29 characters of the download location $dlstring = substr($guid, 29); //Link to PDF $links = $value->getElementsByTagName("link"); $link = $links->item(0)->nodeValue; //Using this because of the force download script. Trimming the first 29 characters of the download location $linkstring = substr($link, 29); //Time length of podcast $durations = $value->getElementsByTagName("duration"); $duration = $durations->item(0)->nodeValue; //Trimming hours & seconds from podcast time, I only want to show full minutes $time = substr($duration, 3, 2); //Date podcast was published $dates = $value->getElementsByTagName("pubDate"); $date = $dates->item(0)->nodeValue; //Trimmin last 16 characters of the date stamp $pubdate = substr($date, 0, 16); //Podcast keywords $keywords = $value->getElementsByTagName("keywords"); $keyword = $keywords->item(0)->nodeValue; //Begin outputting data, view http://www.newlifechapel.com/sermons to see what it looks like echo " "; } ?>


/ (?? Minutes)
Download Sermon Notes here
 
 
$title
$author
$pubdate / ($time Minutes)
[audio:$guid]
Download MP3 here
Download Sermon Notes here