JavaScript Editor Ajax software     Free javascripts 



Main Page

<link>
http://localhost/seophp/Products/SEO-Toolbox-C6/Link-Juice-P31.html
</link>
<description>
The new Link Juice product of SEOEgghead.com can do wonders for your
website!
</description>
</item>
<item>
<title>Learn PHP E-Commerce Programming with PostgreSQL</title>
<link>
http://localhost/seophp/Products/Friends-Shed-C2/PHP-E-Commerce-Book-P42.html
</link>
<description>
This book will teach you PHP E-Commerce programming step by step!
</description>
</item>
</channel>
</rss>
To promote your web feed, you should prominently feature it on your web site. In Chapter 16 you will
also see how to place “chicklets” on a blog to facilitate the addition of your web site to spe-
cific web application–based feed readers.
Syndicating RSS and Atom Feeds
As explained earlier, many differing format standards are used for web feeds. Luckily, as you saw, there
are many tools that help you keep track of your favorite feeds. These tools let you forget about the for-
mat wars entirely. However, when you need to programmatically read and parse external feeds for syn-
dication, things get complicated.
Thankfully, Skyzyx Technologies (
http://www.skyzyx.com/
) has developed a PHP library called
SimplePie (
http://simplepie.org/
) that abstracts the details from the programmer ’s view and
provides a common API used for all feed types and versions. They say:
“SimplePie is a very fast and easy-to-use class, written in PHP, for reading RSS and Atom syndication
feeds. By keeping it simple, and focusing on what’s important, we’ve built a pretty sweet little API.
SimplePie’s focus has been two-fold: speed and ease of use, and has been very successful on both fronts.”
You can find installation instructions at
http://simplepie.org/docs/installation/getting-
started/
and you can find a guide at
http://simplepie.org/docs/installation/from-scratch/
.
Here you use SimplePie in a quick exercise. You’ll build a page that uses SimplePie to read the feed
you’ve just created, and display it for your visitors.
160
Chapter 7: Web Feeds and Social Bookmarking
c07.qxd:c07 10:42 160


JavaScript Editor Ajax software     Free javascripts