Fmdpa Posted September 8, 2010 Share Posted September 8, 2010 I'm not very familiar with the RSS technology. I learned a bit of XML and PHP XML parsing. How does RSS work (e.g. how does the feed reader detect new feeds, etc.), and what are the basic steps in building one (a link to a detailed tutorial would be appreciated too)? I want to integrate a feed into my site blog (that I'm building), and for purposes of learning, I don't want to use Feedburner (unless it is required or extremely neccesary). Link to comment Share on other sites More sharing options...
Synook Posted September 8, 2010 Share Posted September 8, 2010 RSS is just a dialect of XML - there is no infrastructure that goes with it. Feed readers simply check the XML file periodically for new content, and display it.To create an RSS file, you just need to read your database and then print out the RSS tags around your content- just like you would do for HTML. There's nothing special about it. Link to comment Share on other sites More sharing options...
wirehopper Posted September 8, 2010 Share Posted September 8, 2010 You might want to look at some sample code (use Google). There are different versions of RSS, and you'll save yourself a lot of time if you can use existing code. Link to comment Share on other sites More sharing options...
Fmdpa Posted September 9, 2010 Author Share Posted September 9, 2010 I didn't realize it was so simple. I just found some code and threw a "feed" together. Very cool. Is there a way of using php or something to find the number of subscribers? Link to comment Share on other sites More sharing options...
Ingolme Posted September 9, 2010 Share Posted September 9, 2010 I usually use PHP's DOMDocument object to create my RSS feeds. It ensures that the XML is valid Link to comment Share on other sites More sharing options...
real_illusions Posted September 9, 2010 Share Posted September 9, 2010 I create a MySQL/PHP RSS feed...the PHP pulls the data out of a MySQL database and use the RSS/XML structure to create the RSS feed in the correct format.Simple. Link to comment Share on other sites More sharing options...
Fmdpa Posted September 9, 2010 Author Share Posted September 9, 2010 I had in mind what real_illusions does. Link to comment Share on other sites More sharing options...
Synook Posted September 10, 2010 Share Posted September 10, 2010 I didn't realize it was so simple. I just found some code and threw a "feed" together. Very cool. Is there a way of using php or something to find the number of subscribers?You can check the number of different hosts accessing the feed for one type of measurement - or you can insert special links that indicate an entry from your RSS feed, and count those (e.g. <link>http://my.web.site/article.php?from=rss</link>). Link to comment Share on other sites More sharing options...
Fmdpa Posted September 10, 2010 Author Share Posted September 10, 2010 How does feedburner do it? Is their count accurate? Link to comment Share on other sites More sharing options...
justsomeguy Posted September 10, 2010 Share Posted September 10, 2010 The accesses will be stored in the server's log files, you can always analyze those as well for the raw accesses. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.