XML_RSS Help me please

This is a discussion on XML_RSS Help me please within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I'm using the RSS --> HTML example from the PEAR manual. It just wont work for me: require_once "...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-02-2005
suck@pakipower.com
 
Posts: n/a
Default XML_RSS Help me please

I'm using the RSS --> HTML example from the PEAR manual. It just
wont work for me:

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";

I get all the echo's minus those under thr foreach loop as thoush
it's never run. I dont know what I'm doing wrong?

TIA
--
* Posted with NewsLeecher v3.0 Beta 7
* http://www.newsleecher.com/?usenet
Reply With Quote
  #2 (permalink)  
Old 12-02-2005
Sean
 
Posts: n/a
Default Re: XML_RSS Help me please

Do you have XML_RSS installed?

Are there any errors coming up? (check php error log)

Have you tried from the shell (or command line):

pear install -a XML_RSS

Reply With Quote
  #3 (permalink)  
Old 12-02-2005
suck@pakipower.com
 
Posts: n/a
Default Re: XML_RSS Help me please

Had a look at the error log nothing their. I have a folder in the
same directory: /XML/RSS.php

It's on my uni account and I dont have telnet/ssh access to this
server.
--
* Posted with NewsLeecher v3.0 Beta 7
* http://www.newsleecher.com/?usenet
Reply With Quote
  #4 (permalink)  
Old 12-02-2005
Sean
 
Posts: n/a
Default Re: XML_RSS Help me please

Have you made sure the dependencies for XML_RSS are in place?

XML_RSS depends up XML_Parser another pear lib.

Reply With Quote
  #5 (permalink)  
Old 12-02-2005
suck@pakipower.com
 
Posts: n/a
Default Re: XML_RSS Help me please

I'm not to sure. Sent an e-mail to tech support have to wait till
what they say. Hopefully install the lib if it's not their now.
--
* Posted with NewsLeecher v3.0 Beta 7
* http://www.newsleecher.com/?usenet
Reply With Quote
  #6 (permalink)  
Old 12-02-2005
suck@pakipower.com
 
Posts: n/a
Default Re: XML_RSS Help me please

Anyway i can find out from phpinfo() ? as thats the only way I can
seem to find out details of whats on the server.
--
* Posted with NewsLeecher v3.0 Beta 7
* http://www.newsleecher.com/?usenet
Reply With Quote
  #7 (permalink)  
Old 12-05-2005
suck@pakipower.com
 
Posts: n/a
Default Re: XML_RSS Help me please

Blimin tech support. Send them an e-mail they never reply go in
person and tell you to send an e-mail with any logs.

Fixed my problem was rather simple problem. RSS.php requires
Parser.php once that was on the server had works perfect.
--
* Posted with NewsLeecher v3.0 Beta 7
* http://www.newsleecher.com/?usenet
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:10 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0