On Sat, Jan 17, 2009 at 5:06 AM, PHPScriptor <[email protected]> wrote:
> "Fatal error: Uncaught exception 'Zend_Http_Client_Exception' with message
Try catching Zend_Http_Client_Exception in addition to
Zend_Feed_Exception like you have below.
>
> try {
> $slashdotRss = Zend_Feed::import('http://www.test.eu/rss.php');
> foreach ($slashdotRss as $item) {
> $channel1[] = array(
> 'title' => $item->title(),
> 'link' => $item->link(),
> 'description' => $item->description());
> }
> $this->view->nieuwskan = $channel1;
> }
> catch (Zend_Feed_Exception $e) {
> }
try {
// try it
} catch (Zend_Http_Client_Exception $e) {
// handle it
} catch (Zend_Feed_Exception $e) {
// handle it
}
--
Christopher Weldon
http://chrisweldon.net
[email protected]