View Full Version : MySQL data to XML file
pavmoxo
02-28-2007, 07:19 PM
Greetings!!!
How can I write Mysql data in a XML file using PHP for RSS??
Do you have examples??
codeexploiter
03-01-2007, 03:20 AM
check the following tutorials
MySQL data to XML -1 (http://www.kirupa.com/web/mysql_xml_php.htm)
MySQL data to XML -2 (http://builder.com.com/5100-6388-5035149.html)
pavmoxo
03-01-2007, 11:48 AM
Can a RSS reader read a php file for simulate a xml file??
codeexploiter
03-01-2007, 12:10 PM
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....
alexjewell
03-01-2007, 03:49 PM
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.
nikomou
03-04-2007, 02:16 PM
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
:)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.