...

View Full Version : MySQL data to XML file



pavmoxo
02-28-2007, 08:18 PM
Greetings!!!

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

meth
03-01-2007, 12:22 AM
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, 12:47 PM
Can a RSS reader read a php file for simulate a xml file??

meth
03-01-2007, 01:21 PM
No. XML is a markup language, php is a server scripting language.

maghiel
03-01-2007, 01: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.

meth
03-01-2007, 01:53 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.

sir pannels
03-01-2007, 01: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, 03: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 :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum