How to Use an RSS Feed to Provide Content for Your Website
Search engines love websites that are continuously updated with fresh content. As a website owner, if you want to achieve or maintain a good search engine ranking, then your goal should be to continually provide updated keyword–based content on a regular basis to your website. Naturally, if you're providing the content yourself, this takes a lot of work. Let me show you how you can get fresh, keyword-based content updated on your site on a daily basis with no work on your part using RSS feeds and PHP, and most of all, the search engines will love it! RSS is an acronym that is short for Really Simple Syndication. It's a type of XML (eXtensible Markup Language) that is used for syndicating content. XML is used to describe data and is basically a markup language – like HTML. Before I go into the list of items that are needed to make all of this work, I will mention that the details outlined in this article apply to websites that support PHP. PHP is a popular server-side scripting language that is used to create dynamic website content. If your website is running on a Unix-based operating system (like Linux), chances are your web server supports the PHP scripting language. Check with your web host to be sure. Now, I can make this a long drawn out article on the technical details behind RSS, XML and PHP, but that would result in a boring article that hardly anyone would read! Instead, I'll just layout the necessary details for an entrepreneurial minded individual to setup a website using these technologies in a quick and least confusing fashion, I hope. Task: Let's say we run a website on gardening and we want to use an RSS feed to add changing content to our site on a regular basis without us having to do any work. Our goal is to make this new content readable by the search engine spiders. In order to do that, the content needs to be returned via server-side scripting – not client-side scripting (i.e. JavaScript). This is a mistake that a lot of websites that use RSS make. You see, JavaScript is executed by the client; PHP is executed on the web server. When a search engine spider comes across a JavaScript 'script' tag, it stops spidering until it moves beyond the closing 'script' tag. On the other hand, PHP converts the script to HTML on the web server and sends the results back to the client (browser). So when a search engine spider comes across a web page that uses RSS with PHP, the spider only 'sees' the returned HTML – as if the PHP script were never there. So, PHP with RSS is definitely the route to take for SEO conscious website owners. Here's what we need to accomplish our task: 1) An RSS feed link 2) An RSS Tool (PHP script) that can convert an RSS feed into HTML 3) An HTML output-template Getting an RSS feed link... A good place to start looking for an RSS feed is 2rrs.com, where you can execute an 'RSS Search' for the keyword 'gardening'. You'll likely see a bunch of results. Click on any of them. You'll now find an RSS2HTML link under the 'Details' section - which is your RSS feed link. Copy the full HTTP path to this link; we will need it for configuration in later steps. Now we need to get an RSS Tool (PHP script) that can convert an RSS feed into HTML, and we also need an HTML output-template… So, we need a method to take our RSS feed and convert it into HTML so we can insert it into our web page. The best way to do this is to use an awesome little PHP script called rss2html.php. You can download this script here: http://www.feedforall.com/more-php.htm (Choose Option two -> Download) Unzip the download file and you'll find a sample HTML output-template file called sample-template.html and an rss2html.php file. These files will eventually need to be moved to your web server, but before you do that, let's configure everything... The PHP file is the work horse and does the RSS XML to HTML conversion, so there are some configuration settings within this file that need to be set. Open the file in a regular text editor (like Word Pad) and make the following 3 configuration changes: Configuration change #1: Find the following line of code: = "sample.xml"; Change it to: = "Your-RSS-Feed-Link"; The above line of code tells the PHP script where to get your RSS XML feed (file). Remember, the RSS XML feed contains the content which you are trying to add to your website. The website that you get your RSS feed from will update this feed as new content becomes available from the website. (Note: be sure not to download the XML file and specify a local path to it – this will result in your website always using the same XML file – which means your website will not be updated with new content from the RSS XML source.) Configuration change #2: Find the following line of code: = "sample-template.html"; Insert your HTML output-template name in place of sample-template.html. The rss2html.zip that you downloaded from the feedforall link above comes with a sample-template.html that you can use. However, the template from feedforall encompasses the entire HTML code for the entire webpage (from the opening 'html' tag to the closing 'html' tag). If you're inserting this content into your pre-existing webpage, then you'll likely only want to use the HTML code between the opening 'table' tag and the closing 'table' tag. This will allow you to insert a table into your webpage where each row represents an article from your RSS XML feed source. Configuration change #3: Find the following line of code: = 10000; The number '10000' above represents the number of items that you want to retrieve from the RSS feed – which works out to be the number of rows in your HTML table from the previous step. You can leave this setting as is, or you can change it to any positive number your like. For example, if you change it to 5, then the PHP script will display the top 5 RSS feed articles from your RSS feed source. When you're done with these configuration settings you can upload these files to your scripts directory on your web server and add the following line of code to your website's HTML file where you would like the RSS feed content to appear: include ('path_to_scripts_directory/rss2html.php'); Make sure to prefix the above line of code with a 'less-than' symbol followed by a question mark, as well as, postfix it with a question mark followed by a 'greater-than' symbol. Also, remember, if your webpage was initially an html file (i.e. filename.html) then you will want to change it to filename.php in order for the web server to know how to handle the above PHP script. There you go... an easy way to add changing content to your website without any extra work on your part. Sincerely, Michael Ellis
Other Poker Site Articles
Play Jokers Wild Video Poker – For More Fun and More Winning Combinations You play Jokers Wild with a 53-card deck which consists of a regular 52-card deck with the addition of a joker. When playing Jokers Wild the joker acts a wild card which can be used as any card you want to be to make a winning hand.This increases the chances of getting a winning hand and this is what makes playing Jokers Wild such fun ...Why Football Lines Move When you are examining a football game that you are considering making a bet on, you will often find yourself faced with different betting lines based on the time of the week you are looking at the point spread or the Web site you are looking at. The lines are, barring injuries, set a week in advance. But most lines will see some movement throug ...Affiliate Internet Marketing If you’re looking for an easy and quick way to make money on the internet then consider affiliate internet marketing. This is not a get rich quick scheme that requires you to put up a great deal of time and money. Affiliate internet marketing simply allows you to affiliate with existing companies and help sell their products or services. You get ...How Does a Multiplayer Poker Game Work? Multiplayer poker games can be fun for many different types of reasons. First of all, they’re very challenging. Many people appreciate the challenge that poker presents. This is why poker has becomes so competitive recently and also part of why it has increased in popularity. People are looking at an internet poker site and are there to play ...How to Tell a Good Affiliate Marketing Resource When You See One Gambling institutions rely upon affiliates to help them traffic more customers and gamblers to their sites in order to encourage them to spend more money. In return, the gambling sites will give affiliates a nice commission in return for directing traffic to their sites. But there is often a need for affiliates to determine what would work as an ...How to Choose a Sportsbook The savvy bettor will expect the most out of his mate: demanding availability just prior to Monday nights kickoff-this is just one of several requirements. On Sunday morning your sportsbook MUST be on call to serve your every need. A matter of fact, this is to be expected 24/7 and even the 12 months a year.Many bettors have now stumbled u ...Time To Use Really Simple Syndication Feeds RSS is rapidly replacing email marketing and even newsletters. Your competitor most likely is using rss feeds to present visitors with related, rich and automated content. RSS is mostly called Really Simple Syndication and serves as a way to place a feed on websites that can read RSS from a directory.RSS is an XML-based file-application with spe ...Spider Solitaire: A Strategy Guide For Beginners Spider solitaire is a well-known solitaire game, which has gained a lot in popularity since Microsoft have started shipping it free with windows. It is very hard though, and many people want to know how they can increase their chances of winning.The aim of spider solitaire is to build an ascending suit sequence in the foundation zone. Bu ...Online Poker Site Navigating an online poker site is not as difficult as some people might think. Visit a poker website and you will understand almost immediately that you are not going to be browsing aimlessly through the site trying to figure out what to do and how to do it. The administrators of poker websites try their best to make everyone feel at ease when ...Free Poker Games Free poker games are targeted at those players who want to master a few tricks of the trade. Though free poker games do not offer any extra benefit from the real poker game, the game is an excellent way to improve and master the poker.The advantage of free poker games is that the dealer never takes a break, and if seats are available, the ...Why Should Anyone Use Poker Chips? Poker has been around for a long time. Lately, this does not happen only in the casinos but also in television as well. To those who want to play for fun, getting something similar to the real thing will help and that includes the poker chips.People will agree that this is better than using peanuts or toothpicks when playing the game. Chi ...Poker: Table Talk Poker legend Doyle Brunson graciously compliments an opponent with, “Good hand.”Mike Matusow uses the “F word” and is banished to poker’s equivalent of the penalty box.Phil Hellmuth falls off his chair or tells an opponent, “You don’t even know how to spell poker.”And when you get the Poker Brat (Hellmuth) and The Mouth (Mat ...Search for a Great Gambling Site for the Best Gaming Experience If you are in search of a great gambling site that will suit all of your needs there are a couple of steps that you can take. It is not very difficult to find a gambling site if you take the proper steps, and do the appropriate amount of research.The first thing that you will want to do is visit your favorite search engine. It is here tha ...What is an Online Poker Room? People have for years enjoyed the game of poker. Heck, there have even been a number of great movies that have showcased the game. However, with the 21st century well under way, there is a new game in town and it’s called the online poker room. What exactly is an online poker room? If you are familiar with the game of poker and the internet, th ...Casino Gambling Casino gambling is a way of having fun and trying to make money at the same time, by placing bets and wagers in casinos. Casinos are famous the world over. Numerous cities have the reputation of being casino hubs, and the financial turnover in these cities is millions of dollars everyday. State governments often support casino construction. This ...Finding An Online Betting Site Where are the very betting sites and how can a person know if they are legal? This is a very good question. There are a few guidelines to follow when searching for the right betting site. Since there are so many to choose from, the right site should be inviting. It should be easy to navigate through, and it should feel comfortable. Deciding whic ...Accessing a Poker Cardroom Online One of the most popular types of websites on the internet today is poker and casino websites. This is a sport and game which is challenging as well as intellectually stimulating. Many people appreciate this combination of attributes in their entertainment. Accessing these gambling sites is not complicated at all, and people also appreciate th ...Poker Legend, Jack "Treetop" Straus If any guy fit the tag, “He lived life large,” it was Jack “Treetop” Straus. Big wins, big losses, big game hunter.He adopted Hemingway’s motto: “Better one day as a lion than one hundred years as a lamb.”Jack was a Texas-teller of tall tales. He reveled his friends, opponents, journalists, and anyone else who would listen with his ...Massachusetts Casinos You can always tell when people are truly from the state of Massachusetts, as they speak with an unforgettable accent. Boasting Boston as the state capital, Massachusetts is small in size, but large in population, entertainment and just about anything else. There are 6,349,097 people living in Massachusetts, which means there must be a lot to ke ...How to Read an Online Poker Review: Part 1 of 2 There are plenty of online poker review sites out there (including our review portal Poker-Ranking.com), each giving you their take on the numerous poker rooms circulating the internet. Below we’ll begin the process of breaking down for you our own online poker review template so you can learn what to look for when seeking out your next online p ...Vegas Poker Room Vegas is the king of gambling destinations for poker players. Sure, there are more and more reservation casinos cropping up all over America, but Vegas still has the best gambling action. This is not just because there are more lights on the strip, and more shows, but because a Vegas poker room has the most competitive play and the highest pay ...Sit and Go Strategies for Poker Prophecy My previous articles on poker calculators have not included information on Poker Prophecy because in essence it is NOT an online poker odds calculator. However, it does something equally as valuable in that it displays your opponents overall win rate at the poker site you play. Whether you play at Party Poker, Poker Stars, Ultimate Bet, or a sel ...Focus On Chris Moneymaker The whole world watched Chris Moneymaker as he turned a $40 online entry fee into an astonishing $2.5 million dollars by winning the World Series of Poker and as you may have guessed, knocked out some pretty substantial players along the way.An accountant who graduated from the University of Tennessee, Chris Moneymaker wanted to play poke ...Playing Poker Smart: Selecting the Right Table When selecting a poker room or a table for short, you should do it with caution. Essentially you must choose games in which you can stand a chance not only with your poker skills but also with your bankroll. This is best explained if we take an easy example. Let’s say you are the 15th top player in the world and you only play at tables with the ...Blackjack Myths - 10 Common Ones That Will See You Lose! There are many blackjack myths, below we have outlined the most common ones and these myths are not just believed by novice players.Whatever your playing experience, the 10 blackjack myths below will cost you money, so make sure you avoid them!Blackjack card counting is sure fire way of making moneyThis blackjack myth is onl ...
|