Programmer's Reference Guide
| Importing Feeds |
Retrieving Feeds from Web Pages
Web pages often contain <link> tags that refer to feeds with content relevant to the particular page. Zend_Feed enables you to retrieve all feeds referenced by a web page with one simple method call:
- $feedArray = Zend_Feed::findFeeds('http://www.example.com/news.html');
Here the findFeeds() method returns an array of Zend_Feed_Abstract objects that are referenced by <link> tags on the news.html web page. Depending on the type of each feed, each respective entry in the $feedArray array may be a Zend_Feed_Rss or Zend_Feed_Atom instance. Zend_Feed will throw a Zend_Feed_Exception upon failure, such as an HTTP 404 response code or a malformed feed.
| Importing Feeds |
Select a Version
Languages Available
Components
Search the Manual
Navigation
- Programmer's Reference Guide
- Programmer's Reference Guide
- Zend Framework Reference
- Zend_Feed
- Introduction
- Importing Feeds
- Retrieving Feeds from Web Pages
- Consuming an RSS Feed
- Consuming an Atom Feed
- Consuming a Single Atom Entry
- Modifying Feed and Entry structures
- Custom Feed and Entry Classes
- Zend_Feed_Reader
- Zend_Feed_Writer
- Zend_Feed_Pubsubhubbub

+ Add A Comment
Please do not report issues via comments; use the ZF Issue Tracker.
If you have a JIRA/Crowd account, we suggest you login first before commenting.