Create a Php File that Loads XML. for RSS purposes

Discussion in 'XML & RSS' started by ferpol72, May 21, 2009.

  1. #1
    Every good CMS needs to have the RSS as an added tool but if your site is not a dynamic one, you need to make it so. RSS use XML just as a template that pulls data out of the same database used for the main site.

    The XML RSS file is just a template that conveys the main fields to other applications that couldn't communicate other way.

    XML , Extensible Markup Language, was created to do exactly that. It works like a universal data carrier that allows any application to use data as native.

    To create a PHP file that takes out data into a XML file, is very easy in fact. You just create a simple PHP data extraction file and instead of HTML code to give format to data (like <h1>,<p>, and so on...) you use tags identifying fields like <title>, <body> and so on.....

    Even the extension isn't important. You could reffer the RSS reader to a file called .../rss.php and not necessarily .../rss.xml
     
    ferpol72, May 21, 2009 IP