View Full Version : MySQL data to XML file
pavmoxo
02-28-2007, 07:18 PM
Greetings!!!
How can I write Mysql data in a XML file using PHP for RSS??
Do you have examples??
Mr Google Says (http://www.google.com/search?hl=en&as_qdr=all&q=php+xml+rss+feed&btnG=Search&meta=)
I liked the looks of this one: Creating a Custom RSS Feed with PHP and MySQL (http://www.webreference.com/authoring/languages/xml/rss/custom_feeds/)
pavmoxo
03-01-2007, 11:47 AM
Can a RSS reader read a php file for simulate a xml file??
No. XML is a markup language, php is a server scripting language.
maghiel
03-01-2007, 12:25 PM
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.
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 (http://www.icemelon.com/tutorials.php?id=3&/PHP/Generate%20RSS%20Feeds/), but it's not xml. I think perhaps the poor english threw my interpretation of the question.
sir pannels
03-01-2007, 12:58 PM
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
maghiel
03-01-2007, 02:12 PM
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 (http://www.icemelon.com/tutorials.php?id=3&/PHP/Generate%20RSS%20Feeds/), 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 :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.