Rockin’ RSS with PHP on your HTML (
Page 1 of 6 ) An RSS feed lets webmasters tease visitors into returning to their websites
again and again to check out new content. Danny Wall explains how to set up
this simple, automated, spamless way of getting Web surfers to come back for
more.While you may have a good grasp of RSS and what it is, stick with me for just a second and after we run over some preliminary stuff, we’ll move into creating an RSS feed of your own, for your website, using PHP.
RSS (which stands for Really Simple Syndication) is, at its core, a push technology that was developed by Netscape. It gives webmasters the ability to do two things: the first is to easily add content from other websites to their own, and it also easily allows webmasters to push their own unique content out to other people and other websites.
The use that will probably be the most exciting to you is that people who are sick and tired of the mountain of spam filling their inboxes, and tired of having to surf to dozens of sites to get the information they want, are turning to RSS--or more specifically an RSS reader, to obtain news and information on the latest updates to the blogs they follow. An RSS reader (such as the one that can be found at http://www.pluck.com) allows people to see all of the sites they follow in one convenient place and quickly and easily see if there’s anything new--and even what is new.
You can almost think of it as turning the Web into an email application, but without all the spam--because it lets you see which sites have new information in almost the exact same way you know if you’ve read an email or not.
This means that you can add new content to your site, and all of your visitors will know the content has been added and will know what was added. It also means that your own site content can be syndicated across the Web, driving traffic from a huge number of sites directly into your own.
| | Discuss Rockin’ RSS with PHP on your HTML | | | | | | | Simple but informative article on using RSS with PHP. | | | | | | Good article, but why write to a static file instead of creating the feed on_the_fly... | | | | | | I've used this article to help me set up a RSS feed for the site I'm working on. On... | | | | | | Hello,
it works fine, the xml file is created as it should but when I visit my... | | | | | | You can use the script to create the file on the fly really with only a handfull of... | | | | | | There's a very simple reason why you are skipping a story.
The problem is in this... | | | | | | Have you tried simply typing the full URL into your address bar of your XML... | | | | | | I appreciate the comment. The idea behind the article was to keep it simple ...... | | | | | | Think about it. How often do you add content to your site versus how often someone... | | | | | | Just wanted to say that this article was very usefull. Simple and easy to use,... | | | | | | First of all, in all seriousness, the RSS spec is pretty easy. The one I use a lot... | | | | | | Some typos in the article:
On this... | | | | | | Thanks for noticing that. | | | | | | I'm trying to setup this RSS for the first time using the script and MAGPIE RSS... | | | | | | The table you need to create is called "content" and needs to have 5... | | | | | | I added the table, you said 5 fields but only wrote down 4. Are there only... | | | | | | First, you don't need magpie to run the script I've given you. If you remember from... | | | | | | I loaded the database with info, and moved the script to the main directory and I... | | | | | | I have no idea where the fetch_assoc came from.
The line should be fetch_row. ... | | | | | | Could you just send me a clean script, sorry for making this so difficult. I don't... | | | | | | Just let me know your email address and I'll send it to you. | | | | | | Hey guys. I can follow most of this document and am new to php. still learning... | | | | | | In the line of code where you are opening the file you give a full URL. That's your... | | | | | | I been trying to run the script on my website and is not working.
Here is what I... | | | | | | This script isn't for making feeds appear on your website. This script is for... | | | | | | Hi there, thanks for your time,
I put the script on a page called create_rss.php,... | | | | | | when i run the create_rss.php file it give me the following error:
I cannot connect... | | | | | | when i run the create_rss.php file it give me the following error:
I cannot connect... | | | | | | Sorry if this seems a little "testy" ... but this script is for CREATING the rss... | | | | | | Hi again,
Thanks for your help, now the script is half working this is the final... | | | | | | Hi Mr Wall,
Please don't post this message.
I need to get in contact with you... | | | | | | More likely than not your problem is that you don't have the proper user name and... | | | | | | For starters, your fclose() statement has a typo.
it should read... | | | | | | Danny,
I've been trying to run your script and keep getting permission errors. ... | | | | | | I'm sure there are a few problems here - i am a beginner, but on the way to getting... | | | | | | I put it all online so now here is what's shiwing up in my error... | | | | | | My script was stripped so here it is below without the html:
<?php
// open a... | | | | | | I need help. I guess I responded to another message someone else wrote but here is... | | | | | | Look at your SQL statement. Do you have that table in your database? Are there any... | | | | | | I troubleshot and troubleshot and finally after working with someone, they found out... | | | | | | Get the Resolution to the wackjob's problem at the top of the comments (currently... | | | | | | this uses mysql - not MICROSOFT Access | | | | | | The answer is posted in this forum - i believe it was that 'index' (no quotes)... | | | | | | what's with the html tags?
anyways, this was solved in this forum on 8-17-05 - its... | | | | | | You were the only one that responded to this - I have since filled in responses to... | | | | | | Hi, thanks for all the articles on here, they're really showing me that I know... | | | | | | Actually, if you want to get user specific, on the fly generation of your xml is the... | | | | | | Tried to change the permission of the folder you are writing the xml into? Perhaps... | | | | | | Thanks guys, all of this has been a big help, but something is not working for me. ... | | | | | | If you remember, I said that query was the one to pull data out of my content... | | | | | | Danny,
Thank you for the quick reply. I replaced the sample database and login... | | | | | | You'll still need an id field set as the primary key and set to autoincrement. Once... | | | | | | what do i do with files once i create them?
Do put the PHP code in with the .xml... | | | | | | I don't WANT to get into all the coding stuff. Nor do I want to syndicate my site. ... | | | | | | Day one of my quest for a SEO-friendly RSS display on my .html page was from 7 am to... | | | | | | >>> Post your comment now! | | | | | |
|
 |
|