Quantcast
Channel: Zend_Rss_Feed_Reader -> How to avoid exception if the feed source gets invalid? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by prodigitalson for Zend_Rss_Feed_Reader -> How to avoid exception if...

That essentially the way you handle an Exception. Im not sure if i would return false, my preference would probably be for an empty array so that i dont have to have an if statement encapsulating loops...

View Article


Zend_Rss_Feed_Reader -> How to avoid exception if the feed source gets invalid?

I had the following: $feedUrl = 'http://www.something.org/?feed=rss2'; $feed = Zend_Feed_Reader::import($feedUrl); $lastNews = array(); //etc... return $lastNews;The problem was that, if the feed...

View Article

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>