Displaying Rss Feeds On Your Web Page

Displaying Rss Feeds On Your Web Page

RSS feeds have made it​ very convenient to​ syndicate information from various sources. Most of​ websites and​ services that publish fresh content, such as​ ezines, press release, new agencies, blogs make their content available thru RSS feeds. as​ new content is​ published the​ RSS feed gets updated automatically.

Adding RSS feeds to​ web pages has many advantages. Let us say you have added RSS feeds from a​ popular ezine on one of​ your web pages.

• the​ content of​ the​ web page is​ automatically updated as​ the​ ezine makes new content available via RSS feeds. Every time search engine spiders crawl your web page they are likely to​ find the​ web page updated.

• the​ visitors to​ your web site will also find new content on every visit and​ they might be tempted to​ visit your web page more often.

• You do not have to​ bother about writing fresh content as​ RSS feeds are updated automatically.

Earlier I had written an​ article on adding RSS feeds to​ a​ web page using java script. While this method makes fresh content available to​ the​ readers, the​ content of​ the​ feed cannot be “read” by search engine spiders. Therefore the​ web page does not get the​ benefit of​ changing content from the​ search engines.

On the​ other hand php based installation makes it​ possible for​ spiders to​ notice the​ changing content of​ the​ web page. This article is​ a​ follow-up of​ my previous article which outlines simple steps to​ put RSS feeds on a​ web page.

For the​ purpose of​ this article I have chosen the​ free version of​ software available from CaRP. the​ software can be downloaded from this site:


The instruction manual which comes with the​ package gives detailed instructions for​ installing and​ running the​ software. Additional information is​ available from the​ site. While there are several options available for​ using the​ software, I am showing here the​ simplest steps to​ load and​ run the​ software:

1. Download the​ software on your computer. it​ comes in​ a​ zip file. After unzipping save the​ available folders and​ files on your computer. These files and​ folders will be available – carp (folder), img (folder), carpsetup.php, README.html .

2. Upload all the​ files and​ folders to​ the​ root directory of​ your website. This can be done by using FTP. if​ uploading is​ done file by file, ensure that the​ names of​ the​ files and​ folders, and​ location of​ files in​ their folders do not change.

3. Run the​ setup file carpsetup.php from you web browser.

4. a​ new page will be displayed. There are two options given there and​ both are fairly simple to​ work with. the​ file based cashing option is​ sometimes easier to​ set up since you don't have to​ create a​ database and​ copy and​ paste the​ setup code into carpconf.php . You could try this option first and​ if​ you face any problem you can choose the​ other option which is​ based on mySQL database.

The following steps are for​ mySQL database option.

5. Create a​ new mySQL database.

6. in​ step 4 above select mySQL database option. Another new page will open in​ which you have to​ fill the​ details of​ mySQL database. Click on “Create Database Tables”.

7. the​ page which opens now will have code which has to​ be put on the​ web page where you want to​ show RSS feed. the​ code will be displayed in​ a​ gray box.

8. Within the​ code there is​ “setup code”. This setup code should be pasted into a​ file called carpconf.php . the​ file will be available in​ carp directory. On the​ html script of​ this file locate the​ line “//Add configuration code that applies to​ all themes here”. Just below this line paste the​ setup code.

9. Choose a​ web page where RSS feed has to​ be displayed. the​ file name of​ the​ page should have .php extension. if​ your page has .html or​ .htm extension, you can try replacing only the​ extension with .php . Normally this should not change the​ way the​ page appears in​ a​ web browser. if​ you encounter any problem you could make a​ new web page with .php extension.

10. at​ appropriate location of​ the​ web page, where you want RSS feed to​ be displayed, paste the​ code in​ the​ html script of​ the​ page. From there you can remove the​ setup code. it​ is​ not required to​ be added to​ all pages once it​ has been added to​ carpconf.php page in​ step 8 above.

11. if​ you now open your web page in​ the​ web browser it​ will start showing the​ RSS feed which comes along with the​ package. for​ changing this to​ RSS feed of​ your choice you will need to​ make changes in​ the​ code you have entered in​ step 10. in​ the​ code there is​ a​ URL after CarpCasheShow. Change this URL with the​ URL of​ RSS feed you wish to​ display.

Now the​ web page will display the​ RSS feed of​ your choice. You can choose to​ display more feeds on the​ same page or​ have separate pages for​ RSS feeds for​ different sources.

You can see this page on my website on which RSS feed has been added using exactly the​ steps shown here.


You can see some more pages from the​ links on left column of​ this page.

I have tried to​ make the​ process easy to​ follow. You can always refer to​ more detailed instructions which come with the​ package. Take advantage of​ the​ free content available and​ use them to​ boost your page positioning and​ traffic to​ your website.

You Might Also Like:

No comments:

Powered by Blogger.