Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#34 Example code is incorrect (missing <li> tag)

open
nobody
None
5
2006-10-27
2006-10-27
Anonymous
No

In index.html included in the download:

Usage Examples:
A very simple example would be:

require_once 'rss_fetch.inc';

$url = 'http://magpie.sf.net/samples/imc.1-0.rdf';
$rss = fetch_rss($url);

echo "Site: ", $rss->channel['title'], "<br>\n";
foreach ($rss->items as $item ) {
$title = $item[title];
$url = $item[link];
echo "<a href=$url>$title</a></li><br>\n";
}

More soon....in the meantime you can check out a cool
tool built with MagpieRSS, version 0.1.

---------------------
The echo statement in the foreach loop needs an opening
<li> tag or removal of the closing </li> tag.

Discussion