1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Create RSS from database entries

Discussion in 'XML & RSS' started by mokimofiki, Nov 16, 2009.

  1. #1
    I have created a php page that outputs an rss feed as it should look in an xml file. What I need to know now is how to make it readable as a feed?

    What I have now can be viewed at: http://www.mofikiworldwide.com/rssfeed2.php

    Any help would be appriciated and thank you all in advance.
     
    mokimofiki, Nov 16, 2009 IP
  2. mokimofiki

    mokimofiki Well-Known Member

    Messages:
    444
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #2
    The rss feed is now at:
    http://www.mofikiworldwide.com/rssfeed.php

    How this is done is you convert all the code in the xml file to php as an echo and add your queries.

    Then all you have to do is add the following code to the top of your page so that browsers think its an xml file instead of a php.

    <?php
    header("content-type: text/xml");

    If anyone has any problems with this or any questions feel free to ask me here and I will do my best to help :) Happy scripting :)
     
    mokimofiki, Nov 21, 2009 IP