//
RSS: Php Scripts

Those who run web servers, or those who have input to their hosting company, will find these php scripts helpful in producing RSS feeds on a web site. Don’t dismiss these tools only because you already have an RSS-producing mechanism. Remember: A mechanic has more than one tool in his toolbox.

  • RSS2html. (FREE) Using php, this script takes an RSS feed and turns it into an HTML page. You can then display that page on your site using a link. You can either run it online, using a public web server, or by puting the php script on your own Web server and running it from there. All you need is the script and a template to call in the RSS information you want to include in your html page. You have total control … you can include or exclude material from the RSS feed to display on the page. This free script is from NotePage, producers of the FeedForAll line of RSS products. If your webserver doesn’t support allowing you to upload the rss2html PHP script, then you can run the rss2html.php script on FeedForAll’s public server instead. All you need to do is setup a link on your website to access the resulting webpage. [Read more here]…. [Download it here].

Here’s an example of a template you could use to produce the html:

~~~BeginItemsRecord~~~ ~~~EndItemsRecord~~~

~~~ItemTitle~~~
~~~ItemDescription~~~

Pretty simple, isn’t it?

And here is an actual page that uses the above template, and the rss2html script, to produce an html page. If that doesn’t seem interesting, take a look at several RSS feeds used on a page with CSS styles applied (page best viewed with FireFox). Everything on the page (except the header, navigation and titles comes from RSS feeds using that simple template above and the rss2html script. Note: The name of the page ends in “.php” so that the php(include) function can be used to include each feed into its assigned position on the page. In all, there are six feeds displayed on the page that use the template and rss2html script combination. (We’ll talk about using javascript to display RSS feeds in another article)

The result of all this intervention is an html page full of RSS feeds that don’t look like your typical RSS feeds, and when you update the feeds, you automtically update the page — all without having to open an html editor or Content Management System page.

If you want to see the process of creating an html page from an RSS feed in action, go here, select Option 1 and take the script out for a spin online. By the way, once you’ve created your page, you can link to it on your site, or include it on a page on your site. Have fun!

(Next: SimplePie)

Discussion

One Response to “RSS: Php Scripts”

  1. Learning php is not easy task but information to using php in different type and different way and how to use web servers and script and how to applied css in php. really nice information thanks.

    Posted by phponlys | May 27, 2010, 7:21 am

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.