3000)
file_put_contents($file_name, $rss);
}

$rss = simplexml_load_string($rss);

echo ‘

‘, $rss->channel->title, ‘

‘, “
“;
echo ‘

‘, $rss->channel->description, ‘

‘, “
“;

foreach($rss->channel->item as $item) {
echo ‘

‘, “
“;
echo ‘

link, ‘”>’, $item->title, ‘

‘, $item->pubDate, ‘

‘, “
“;
echo ‘

‘, $item->description, ‘

‘, “
“;
echo ‘

‘, “
“;
}?>

Creative Commons License

Republish our articles for free, online or in print, under a Creative Commons license.