Creating an RSS feed from PHP

PythonPython Forum LeaderThe Royal RAM
I want to offer the ability for people to syndicate the content here at Dev Dreams by using RSS feeds.

The content is currently stored in a MySql database. How can I access the database using an RSS file?

Thanks

The Royal Ram

Comments

  • ChroderChroder Senior Member The Royal RAM
    Didn't you already post this?

    Ah, here.
  • PythonPython Forum Leader The Royal RAM
    aha... sorry - I must have missed your reply.

    Thanks

    The Royal Ram

  • PythonPython Forum Leader The Royal RAM
    Ok I tried just echoing the info out using a simple while statement and ive come across a problem..

    If the file is saved as a .xml then it just displays the PHP code and doesnt work obviously and if it is saved as a .php then it simply echoes out the info and treats the tags as if they were html tags...

    How do I get around this problem?
    Thanks

    The Royal Ram

  • PythonPython Forum Leader The Royal RAM
    its ok.. problem solved :)

    I set the header to html/xml in PHP...
    Thanks

    The Royal Ram

  • ChroderChroder Senior Member The Royal RAM
    Yup, RSS readers don't care what the extension is generally.
Sign In or Register to comment.