#PHP RSS 2.0 Feed Maker v1.0 #This document is a sample rss feed maker for homemade blogs. #It uses PHP to create an up-to-date RSS 2.0 feed from your MySQL database. # #Notes: I have created "comments" using the pound (#) symbol #However, these aren't legal comments and will break your code #You will have to remove all of the text on a line following a #, as well as the # itself #Also, be sure to rename this file to a .php extension #This document assumes the user is comfortable with PHP, MySQL, and general WebDevelopment # #Author: Eric Gustavson. Use & Modify all you want. #I got started here: http://www.pageaffairs.com/web/rss/create-your-own-rss-feed/ and then coded the php myself #Thanks to Ralph Mason, and the folks over at Page Affairs #for helping me get started & providing the original rss xml document. '."\n"; ?> Your Blog Title http://YourBlogUrl.com/ Your Feed Tagline en '.$row['title'].' http://www.YourBlogUrl.com/?p='.$row['id'].'/ #Modify this expression to match your permalink scheme http://www.ericmgustavson.com/?p='.$row['id'].'/ #Modify this expression to match your permalink scheme '.str_replace("&","and",trim(substr(strip_tags($row['content']),0,225))).'... #The above line shortens your post to 225 characters, strips away any HTML/PHP tags, trims off white space, and replaces & with "and" ('&' causes problems with feedburner) '; } ?>