 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPBuilder.com: Building a PHP RSS Aggregator
by Chris Cornutt April 04, 2013 @ 13:09:13
On PHPBuilder.com today there's a quick tutorial showing you how to build an RSS aggregator that can pull in RSS content and drop it into a MySQL table.
RSS stands for Really Simple Syndication. It is a Web format that allows website owners to distribute their latest and frequently updated content in a standardized way. RSS feed is actually an XML document that can be easily read by using RSS reader software or built-in functions in programming languages, such as PHP or Java. In this article, the focus will be on building a RSS aggregator in PHP.
They introduce the basics of an RSS feed - a specially formatted XML document with values for individual posts (like "title" and "link". They provide the SQL structure for the "article" and "feed" tables and the code to pull out each "feed" record, parse it and drop that into the "article" table for later consumption. They show two different methods for getting the content - one using file_get_contents and another using cURL.
voice your opinion now!
rss aggregator tutorial mysql database parse
Padraic Brady's Blog: Wishing For A PEAR Channel Aggregator? Yes, Please!
by Chris Cornutt April 13, 2011 @ 12:56:23
In his latest post Padraic Brady talks about an effort that's been put out there (by Stuart Herbert) to come up with a PEAR channel aggregator - something he fully supports.
Since we seem to like blaming the PEAR Group, and getting that ball kicked back to us, it's time we did something useful. We've spent too much time ignoring PEAR as we grew apart from it with our frameworks, standalone libraries and custom plugin architectures. We're making life harder for ourselves in doing so. Stuart Herbert has posted a short article to gather requirements for a Pear Channel Aggregator. I strongly suggest that interested PHP programmers drop by and add a comment with some suggestions/feedback.
Stuart's suggestion has already gathered some good comments and suggestions from all around the community including some mentions of efforts from the Symfony project to do something similar.
voice your opinion now!
pear channel aggregator project
PHPBuilder.com: Creating an RSS Aggregator with the PHP SimplePie Library
by Chris Cornutt August 18, 2010 @ 13:09:35
On PHPBuilder.com there's a new tutorial looking at using the SimplePie library to aggregate RSS feeds.
PHP developers are particularly lucky as a fantastic library named SimplePie not only offers the aforementioned features but also supports both RSS and Atom formats, multiple character encodings, and an architecture that makes integration with your favorite content management and blogging platforms a breeze. In this tutorial I'll introduce you to SimplePie, showing you how easy it is to create a rudimentary custom RSS aggregator using this powerful library.
He helps you get SimplePie installed (downloaded and unpacked) pulling in both single and multiple feeds. There's no caching or storage included in the tutorial, but it would be recommended if you choose this as an option for everyday use.
voice your opinion now!
rss aggregator simplepie library tutorial
Padraic Brady's Blog: Optimise Your Zend_Feed Aggregators With HTTP Conditional GET Support
by Chris Cornutt July 29, 2008 @ 11:13:06
Padraic Brady has written up a post on how he implemented conditional fetching (GET) as a part of the Zend_Feed component of the Zend Framework.
You see, by default, Zend_Feed is stupid. It will blindly drag in whatever RSS you point it at, parse it, present an accessible API (which is largely an abstract API across PHP DOM), and then merrily sit back while you are driven demented. There is a problem in blindly fetching RSS and parsing it - RSS feeds from a huge number of online sources only change rarely. The rest of the time the feed is unchanged.
The key is in the "Last-Modified" header data of the remote file (and ETag). He shows how to use this knowledge in a simple example - pulling data with a ZFBlog_Aggregate class and dumping the contents into a database table. This code checks the return status for a 304 ("Not modified") and closes out the connection if so. Otherwise it grabs the content and updates the database with the most recent fetch times to compare to the "Last-Modified".
voice your opinion now!
zendframework feed aggregator conditional get lastmodified
DevShed: Building an RSS File
by Chris Cornutt February 14, 2007 @ 09:02:00
In the continuing series on RSS files, DevShed has posted this new part with a focus on the "theoretical aspects" of developing an RSS file.
These aspects include things like examples of the elements it can contain, elements that are required for it to be a compliant RSS document, a look at the enhanced RSS functionality and structure (more information about the creator of the RSS embedded in the data), and even a look at what an aggregator is and what they would do with your RSS file.
Keep an eye out for the last installment in the series - a look at actually creating the RSS file from your data (probably from a database) and displaying it for the world to see.
voice your opinion now!
build rss file element required aggregator ehnanced build rss file element required aggregator ehnanced
|
Community Events
Don't see your event here? Let us know!
|