Results 1 to 6 of 6

Thread: MySQL data to XML file

  1. #1
    Join Date
    Apr 2006
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Wink MySQL data to XML file

    Greetings!!!

    How can I write Mysql data in a XML file using PHP for RSS??
    Do you have examples??

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

  3. #3
    Join Date
    Apr 2006
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Can a RSS reader read a php file for simulate a xml file??

  4. #4
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Can a RSS reader read a php file for simulate a xml file??
    I didn't get your point ...

    1) Why should an RSS reader read a PHP file to simulate an XML file?

    You can run the script that convert mysql data into an XML file and and read that xml file using RSS reader script....

  5. #5
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    Oh, yeah. You use HTTP Headers to send out the file to be recognized as another file type even when it's PHP. I use it for my CSS stylesheets and JavaScripts - they're PHP files, but are recognized as CSS files and JavaScript files by the browser.
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  6. #6
    Join Date
    Aug 2005
    Posts
    174
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    i've just done this using a mySQL database... still need some help?

    to solve the problem mentioned above, this is what i did:

    create the rss feed using php
    save the feed to an xml file
    used cron to update the xml everyday


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •