Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Regular Coder
    Join Date
    Apr 2006
    Posts
    154
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool 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
    Regular Coder meth's Avatar
    Join Date
    Jan 2003
    Posts
    262
    Thanks
    0
    Thanked 9 Times in 9 Posts
    I do Web Design, Brisbane based.
    More time spent in PHP/MySQL Web Development.
    And Search Engine Optimisation takes up the rest of it.

  • #3
    Regular Coder
    Join Date
    Apr 2006
    Posts
    154
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can a RSS reader read a php file for simulate a xml file??

  • #4
    Regular Coder meth's Avatar
    Join Date
    Jan 2003
    Posts
    262
    Thanks
    0
    Thanked 9 Times in 9 Posts
    No. XML is a markup language, php is a server scripting language.
    I do Web Design, Brisbane based.
    More time spent in PHP/MySQL Web Development.
    And Search Engine Optimisation takes up the rest of it.

  • #5
    Regular Coder
    Join Date
    Jun 2004
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by meth View Post
    No. XML is a markup language, php is a server scripting language.
    wrong! php can output headers so why not xml?
    you can just make a php file that outputs xml directly, so not to a different file.
    that's especially nice if you to show specific stuff for different clients.

  • #6
    Regular Coder meth's Avatar
    Join Date
    Jan 2003
    Posts
    262
    Thanks
    0
    Thanked 9 Times in 9 Posts
    Srry dude, but php is exactly that, php, not xml. Yes, php can generate an xml file, it can respond to an rss request in xml, but it's not xml. I think perhaps the poor english threw my interpretation of the question.
    I do Web Design, Brisbane based.
    More time spent in PHP/MySQL Web Development.
    And Search Engine Optimisation takes up the rest of it.

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by pavmoxo View Post
    Greetings!!!

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

    Do you mean write a script or write to an xml file?

    If you mean write a script, the help above will do the trick.. if you want to write mysql data to xml take a lookie here: http://www.tonymarston.net/php-mysql/dom.html

  • #8
    Regular Coder
    Join Date
    Jun 2004
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by meth View Post
    Srry dude, but php is exactly that, php, not xml. Yes, php can generate an xml file, it can respond to an rss request in xml, but it's not xml. I think perhaps the poor english threw my interpretation of the question.
    ok

    but still, for the client, it's just as well xml


  •  

    Posting Permissions

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