Welcome Guest, Not a member yet? Register   Sign In
Retriveing Rss results getting problem
#4

[eluser]whobutsb[/eluser]
Hello All,
I'm running into some issues using SimpleRSS.

Here is the code that I'am using:
Code:
$this->load->library('simplepie');
        $link = 'http://feedproxy.google.com/blogspot/MKuf';
        
        $feed = new SimplePie();
        $feed->set_feed_url($link);
        $feed->enable_cache(false);
        $feed->init();
        $feed->handle_content_type();

        $items = $feed->get_items();
        print_r($feed);
        die;
         foreach($items as $item){
             echo $item->get_title();
         }
        
         die;

When I print $feed I see there is an error: [error] => A feed could not be found at http://feedproxy.google.com/blogspot/MKuf

Which is ridiculous because its the official google blog RSS feed.

If I change the method set_feed_url to force_feed(), the error doesn't show up but when I try print_f $items it comes up as a blank array.

Am I missing something with this library?


Messages In This Thread
Retriveing Rss results getting problem - by El Forum - 08-30-2007, 01:55 AM
Retriveing Rss results getting problem - by El Forum - 08-30-2007, 03:53 AM
Retriveing Rss results getting problem - by El Forum - 08-30-2007, 11:23 PM
Retriveing Rss results getting problem - by El Forum - 04-29-2009, 10:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB