Thursday, June 25, 2009

Setting timeout for Zend_Feed_RSS

Simple but not a straightforward one:

Zend_Feed::setHttpClient(
new Zend_Http_Client(
null,
array(
'timeout' => 3 // seconds
)
)
);

1 comment:

  1. HI,
    can you explain a bit better how to use it? Currently I have new Zend_Feed_Rss($url); in my code.. how do I have to change it?

    thanks

    ReplyDelete