dynamic xml / rss feeds using php

December 28, 2004

I setup an rss feed using php on my company’s website www.northwestdata.com (which I also designed and developed). It involves a little trickery with the headers. I created an index.php file then put this at the top of the page…
header('Content-type: text/xml');

…to tell the browser to treat it as xml despite the php extension. I got the info here Richard@Home. Didn’t need to deal with the short tag notation as the document is php to start with.

The rest is straightforward php mysql coding.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: