channel['title'] . "
";
echo "
";
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
echo "- $title
";
}
echo "
";
}
?>
Security Note:
This is a simple example script. If this was a real script we probably wouldn't allow strangers to submit random URLs, and we certainly wouldn't simply echo anything passed in the URL. Additionally its a bad idea to leave this example script lying around.