[fw-general] Zend_Feed from string

2008-08-15 Thread Dimitri van Hees

Hi list,

I am sorry for bothering you again with this question, but I can't seem 
to find a solution to my problem. I use Zend_Http to fetch a feed so 
that I can handle a timeout in case the providing server is down. For 
another feed I need to login so I use CURL to fetch that feed.


Anyway, my variable $rss is a string containing the contents of the 
feed, like: $feed= '?xml etc. etc.';


I want to use Zend_Feed together with this string, but I can't find how 
to 'convert' this string to a Zend_Feed object. I hoped 
Zend_Feed::importString($feed) would do the trick but it doesn't.


Is there any way to achieve this?

Thanks in advance,

Dimitri


Re: [fw-general] Zend_Feed from string

2008-08-15 Thread Simone Carletti
 Zend_Feed::importString($feed) should be the right solution.
Which error did you receive?

-- Simone

On Fri, Aug 15, 2008 at 3:36 PM, Dimitri van Hees [EMAIL PROTECTED]wrote:

 Hi list,

 I am sorry for bothering you again with this question, but I can't seem to
 find a solution to my problem. I use Zend_Http to fetch a feed so that I can
 handle a timeout in case the providing server is down. For another feed I
 need to login so I use CURL to fetch that feed.

 Anyway, my variable $rss is a string containing the contents of the feed,
 like: $feed= '?xml etc. etc.';

 I want to use Zend_Feed together with this string, but I can't find how to
 'convert' this string to a Zend_Feed object. I hoped
 Zend_Feed::importString($feed) would do the trick but it doesn't.

 Is there any way to achieve this?

 Thanks in advance,

 Dimitri



Re: [fw-general] Zend_Feed from string

2008-08-15 Thread Dimitri van Hees
h I'm not sure whether it had something to do with my local 
configuration or with ZF 1.6 RC1, but appearantly after installing RC2 
it indeed works with importString(). great stuff!


thanks for your answer by the way!

Simone Carletti wrote:

Zend_Feed::importString($feed) should be the right solution.
Which error did you receive?

-- Simone

On Fri, Aug 15, 2008 at 3:36 PM, Dimitri van Hees 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:


Hi list,

I am sorry for bothering you again with this question, but I can't
seem to find a solution to my problem. I use Zend_Http to fetch a
feed so that I can handle a timeout in case the providing server
is down. For another feed I need to login so I use CURL to fetch
that feed.

Anyway, my variable $rss is a string containing the contents of
the feed, like: $feed= '?xml etc. etc.';

I want to use Zend_Feed together with this string, but I can't
find how to 'convert' this string to a Zend_Feed object. I hoped
Zend_Feed::importString($feed) would do the trick but it doesn't.

Is there any way to achieve this?

Thanks in advance,

Dimitri





--

- -

*freshheads* grafisch ontwerp en internet applicaties
Dunantstraat 1c | 5017 KC Tilburg | Nederland
tel. +31 (0)13 5448761 | fax. +31 (0)13 5448762
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] | www.freshheads.com 
http://www.freshheads.com


Laatste berichten op het Freshheads blog:
Meer media aandacht voor Werkspot 
http://blog.freshheads.com/2008/08/meer-media-aandacht-voor-werkspot/
Nieuwe website voor 013 
http://blog.freshheads.com/2008/08/nieuwe-website-voor-013/
Werkspot in de Telegraaf 
http://blog.freshheads.com/2008/08/werkspot-in-de-telegraaf/