hi matthew,

thanks for your reply. however, i noticed that Zend_Http does the trick with the timeout for me as well. my main problem remains: as Zend_Feed:importString appearantly only accepts a PHP string, I don't know how to create a feed from a Zend_Http_Response object, a SimpleXML object, or a complete string with the source code of the feed. does anyone know how to use Zend_Feed together with those response types?

thanks again!

Matthew Weier O'Phinney wrote:
-- Dimitri van Hees <[EMAIL PROTECTED]> wrote
(on Monday, 11 August 2008, 11:33 PM +0200):
is there a possibility to combine zend_feed with curl? the problem i encounter is that some of the external feeds i try to fetch are offline a lot of the time. for that reason, i'd like to use curl (with an option to timeout properly) to retrieve the feed contents. i'd see Zend_Feed::importString($curlResult) would do the trick, but it doesn't work. perhaps adding a functionality to zend_feed for using it with curl is something for the future? does anyone have any other solutions to face this problem?

There's a curl adapter for Zend_Http_Client in the incubator currently,
but it isn't completely tested or documented. If you would like to
contribute to that effort, you'd be able to use Zend_Feed with curl by
using the Curl adapter to Zend_Http_Client.


Reply via email to