XML_RSS: $rss->getItems() not getting items
| From: | l Burnerheimerton | Date: | Wed, 31 Aug 2005 20:37:25 +0000 |
| Subject: | XML_RSS: $rss->getItems() not getting items | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20705@lists.php.net to get a copy of this message | ||
I am using the exact example from the documentation as
a test case:
<?php
require_once "XML/RSS.php";
$rss =& new
XML_RSS("http://slashdot.org/slashdot.rdf");
$rss->parse();
echo "<h1>Headlines from <a
href=\"http://slashdot.org\">Slashdot</a></h1>\n";
echo "<ul>\n";
foreach ($rss->getItems() as $item) {
echo "<li><a href=\"" . $item['link'] .
"\">" .
$item['title'] . "</a></li>\n";
}
echo "</ul>\n";
?>
Here is what is in the page source when displayed:
<h1>Headlines from <a
href="http://slashdot.org">Slashdot</a></h1>
<ul>
</ul>
This worked the other day. I have since reinstalled
Pear packages including:
XML/RPC/
XML/Tree/
XML/Parser/
XML/RSS.php
and others in their respective directories.
Any ideas why this is not working?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com