'."\n"; } } ?>

: (Podcasts from The New Yorker)

channel->title; $feedDescription = html_entity_decode(substr($xml->channel->description,0,86)).'...'; echo '

'.$feedTitle.' Subscribe to the Feed

'."\n"; echo '

'.$feedDescription.'

'."\n"; echo '
'."\n"; if (!empty($xml->channel->item)) { foreach ($xml->channel as $feed) { //loop through items for display; number of items determined by $limit variable above for ($i=0; $i<$limit; $i++) { //get media file $attrs = $feed->item[$i]->enclosure->attributes(); $mediaFile = $attrs['url']; //get blog post link $postLink = $feed->item[$i]->link; echo '
'.html_entity_decode($feed->item[$i]->title).''.substr($feed->item[$i]->pubDate,0,50).'
'."\n"; echo '
'.html_entity_decode($feed->item[$i]->description).'
'."\n"; $itunes = $feed->item[$i]->children('http://www.itunes.com/dtds/podcast-1.0.dtd'); echo '
Keywords: '.$itunes->keywords.'
'."\n"; echo '
Duration: '.$itunes->duration.' Download file
'."\n"; echo '
'."\n"; } } } else { echo '
There are no items available at this time. Check back with us later.
'."\n"; } echo '
'."\n"; ?>