I am getting the following error when I try to consume any RSS feed.  Below
is the code I am using (from the manual)

<?php
ini_set('display_errors', 1);

require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();

print function_exists('stream_context_create') ? "true" : "false"; //prints
true

// Fetch the latest Slashdot headlines
try {
    $slashdotRss =
        Zend_Feed::import('http://rss.slashdot.org/Slashdot/slashdot');
} catch (Zend_Feed_Exception $e) {
    // feed import failed
    echo "Exception caught importing feed: {$e->getMessage()}\n";
    exit;
} catch (Zend_Http_Client_Adapter_Exception $zhcae) {
        print $zhcae->getMessage();
        exit;
}

// Exception  that is thrown
Unable to Connect to tcp://rss.slashdot.org:80. Error #-1077097640: 
-- 
View this message in context: 
http://www.nabble.com/Zend-Http-Client-Adapter-Socket-Error-with-Zend-RSS-tp20689403p20689403.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to