Rockin’ RSS with PHP on your HTML - How--and why--to get started (
Page 3 of 6 )
You should know that there are a lot of tutorials and the like on how to add RSS content to your own site. An excellent one can be found at: http://www.devshed.com/c/a/PHP/Plugging-RDF-Content-Into-Your-Web-Site-With-PHP.
Additionally, there are a wide range of tools to make adding RSS to your site easy with hardly writing any code of you own. I personally use the MagpieRSS toolset created in PHP which can be found at http://magpierss.sourceforge.net. So instead of covering how to get RSS added to your site, what I’d like to do is talk about how you can build your own RSS feed.
Some webmasters that I know groan over the thought of RSS. It’s yet another new technology to learn, another new thing to add to their site and manage. The thing is, RSS is really nothing more than an XML application, and if done right, it doesn’t need any management. Everything can be (indeed, should be) automated.
In fact, RSS it is the first widespread use of XML. It is the first time XML is being used to do something useful for the average Web surfer AND for the average webmaster.
To start with, the easiest thing to do will be to take a look at what an RSS file looks like. You can see an example RSS file at: http://www.wolfdatasystems.com/rss.xml
To anyone with any knowledge of HTML it isn’t really hard to figure out what is going on. There isn’t anything strange or scary, there isn’t anything to make you cringe.
| | 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! | | | | | |
|
 |
|