Generate RSS Feed with Php - RSS SEO
RSS is a great way to syndicate and allow users to subscribe to content from a website or blog using their preferred RSS reader. Many major search engines regulally crawl RSS feeds in order to find fresh content, allowing a post or page to become visible in Search Results within minutes of publishing the content. The actual page may not be crawled and make it into the index until between days and sometimes weeks have passed depending on the trust and activity levels of the overall site.
Submitting RSS Feeds to Search Engines and Directories allows external website and search engines to respond promptly when new content is added by including in Search Results or directory listings.
A few things to consider:
Consistently Published High Quality (useful) content + RSS Feed = increased change of instant ranking in major search engines for blog/news searches and web searches in some cases as well.
High Quality + Instant Rankings = instant (within days) addition of natural inbound links from other websites / bloggers to your new content.
High Quality Content + initial steady increase in (NATURAL) backlinks = (exponential) increase in Visitors to the new page from organic Search Results as well as additional natural backlinks referrals.
Publishing high quality content should the main thing to focus on, but if there are no methods such as RSS feeds, an active/dynamic homepage (feeding urls to users and crawlers/spiders), sitemaps, etc. to let search engines and other users know about the new content, the process of your content being included in organic search results will take longer. This is because Search Engines may not know about the new content at all until your site is crawled, or an external (inbound) link is followed to the new page.
Building a dynamic sitemap that includes all urls on your website or blog that you want indexed is a good idea, but as search engines generally allow RSS feeds to be submitted as a site map it makes it possible to kill two birds with the one stone. Generating an RSS feed with the content, or a summary of the content from your site allows users to subscribe if they wish to be updated each time you publish, and can be submitted to Search Engines as a site map to ensure that all pages are crawled and included in the index if deemed useful and appropriate once crawled.
There are a number of methods that can be used to generate an RSS feed using Php, such as constructing and outputting the RSS Feed xml file using the XML Writer class which exists as core functionality in Php. This would be quite time consuming to redevelop each time you want to generate a new feed for some content on your website or from a database, so the basic methods required to generate an RSS 2,0 compatible feed have been written into the following Php RSS 2 Writer class.
Constructing the feed is easy using the class, and can be achieved in just a few lines of code. The Title, description and url for the feed are passed to the class constructor when instantiating the new RSS2Writer object. Once the object has been created, additional channel data can be added to the feed if required. Adding items to the feed is also done using the addItem() method of the class. Once an item is added, other (optional) information can be associated with the feed item such as categories, author details, publish date/time, etc. .
More information, step by step instructions and code samples for how to use the Php RSS Writer class to generate RSS Feeds. Php RSS 2 Writer Class Download (inc. sample controller).
SEO News and Resources
Submit a review:
Login required.