3
define('MAGPIE_DIR', '../');
4
require_once(MAGPIE_DIR.'rss_fetch.inc');
9
$rss = fetch_rss( $url );
10
echo "Channel: " . $rss->channel['title'] . "<p>";
12
foreach ($rss->items as $item) {
13
$href = $item['link'];
14
$title = $item['title'];
15
echo "<li><a href=$href>$title</a></li>";
22
RSS URL: <input type="text" size="30" name="url" value="<?php echo $url ?>"><br />
23
<input type="submit" value="Parse RSS">
27
<h2>Security Note:</h2>
28
This is a simple <b>example</b> script. If this was a <b>real</b> 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.
b'\\ No newline at end of file'