"Injury Lawyer Directory")); /* Uses Magpie function to read in our Atom feed. Uses different variable name from our other hack to avoid conflicts with RSSWriter inc file.*/ $atomfeed = fetch_rss( 'http://www.page1solutions.com/page1rss/xmlpage/Page1SolutionsLegalDirectory.xml' ); /* cycle thru rss object */ //print_r($atomfeed); foreach ($atomfeed->items as $item ) { $title = $item['title']; $related_href = $item['link_related']; $content = $item['description']; $date = $item['created']; $numberid = $item['link']; $issuedate = $item['pubdate']; $item['pubDate'] = $item['pubdate']; unset($item['pubdate']); $rss->addItem($numberid, $title, $item); } //END OF FOREACH ( $rss->items as $item ) /*-----------------------------END FIRST FEED-------------------------------------*/ $rss->serialize();//saveFeed("RSS1.0", "feed.xml"); ?>