I need an extremely simple code for what I need. I need the first five titles of an RSS feed to have values in 5 different variables. No description, no date, no image, no cache, nothing else. Anything which can simply do that?
PHP RSS parser problems?
the simplest way to do a cheesy search is with regular expressions.
in 1 statement you can find all the %26lt;title%26gt; tags!
then you can loop thru them!
regular expressions are like an art form but any other method would be a lot longer.
%26lt;title%26gt;,*?%26lt;/title%26gt;
Reply:Use Magpie RSS, http://magpierss.sourceforge.net/
or the Zend Framework which has a class for reading RSS feeds, http://framework.zend.com/ (Zend_Feed_RSS class)
This way, most of the work is done for you.
If you dont have a feed yet, you can make one at http://mynotify.com/
No comments:
Post a Comment