How To Create An Rss Feed And Display It?
Solution 1:
Use Yahoo Pipes! : you don't need programming knowledge + the load on your site will be lower. Once you've got your feed, display it on your site using a simple "anchor" with "image" in HTML. You could consider piping your feed through Feedburner too.
And for the freeby: if you want to track your feed awareness data in rss, use my service here.
Solution 2:
Are you meaning that someone will insert the feed content by hand?
Usually feeds are generated from the site news content, that you should already have into your database.. just need a php script that extract it and write the xml.
Edit: no database is used.
Ok, now you have just 2 ways:
- Use php regexp to get the content you need from the html page (or maybe phpQuery)
- As you said, write the xml by hand and then upload it, but i havent tryed any wysiwyg xml editor, sorry.. there are many on google
Solution 3:
Does that PHP site have a database back end? If so, the WYSIWYG editor posts into there then a special PHP file generates an RSS feed.
Solution 4:
I've used the following IBM page as a guide and it worked wonderfully: http://www.ibm.com/developerworks/library/x-phprss/
Solution 5:
I decided that instead of trying to find a WYSIWYG for XML that I would let the news editor continue to upload the news as HTML. I ended up writing a php program to find the <p>
and </p>
tags and creating an XML file out of it.
Post a Comment for "How To Create An Rss Feed And Display It?"