Tuesday, January 11, 2011

Getting the ie 7 feed autodiscovery to work.

You know the little feed icon at the top of ie7 + that glows when an rss feed has been detected on a webpage? I was wondering for the longest time why it wasnt glowing on my webpages where i clearly had a feed.

Here's why:
Basically the feed autodiscovery works based on a link tag in the head of the webpage.
For RSS it would look like this:
<link rel="alternate" type="application/rss+xml" title="your feed title here" href="http://www.company.com/feedurl.rss">

For Atom it would look like this:
<link rel="alternate" type="application/atom+xml" title="your feed title here" href= "http://www.company.com/feedurl.xml">

I found this info in this article: http://blogs.msdn.com/b/rssteam/archive/2005/08/02/publishersguide.aspx

Monday, January 10, 2011

PHP OOP - a real world example

Although not the best practice in real world programming, this tutorial offers a slightly more valuable way to use object oriented programming with php.
http://net.tutsplus.com/tutorials/php/real-world-oop-with-php-and-mysql/