kaplanyo Posted September 5, 2009 Share Posted September 5, 2009 Hi, I have what I think is a good system for generating XML from PHP. The PHP scripts run and dynamically generate some XML. So I get XML output from a PHP file. What I'd like to do what I think of as 'publishing' the XML file, or creating an actual .XML file from the PHP. Is there function in PHP that would allow me write a file? PHP file > script runs > makes an actual .XML file. I'm loading this XML into Flash and trying to optimize the loading, sometimes it seems like the dynamically generated XML takes a few seconds to get created by the PHP, sometimes it's fast (non-cached). I thought it might be better to load the XML from a 'static' XML file that I generated with my PHP script. Any push in the right direction would be great, thanks. Dave Quote Link to comment Share on other sites More sharing options...
bundyxc Posted September 5, 2009 Share Posted September 5, 2009 Might want to take a look at fwrite. Quote Link to comment Share on other sites More sharing options...
Mark Baker Posted September 5, 2009 Share Posted September 5, 2009 XMLWriter if you're running 5.1.2 or above; or DOM Quote Link to comment Share on other sites More sharing options...
kratsg Posted September 5, 2009 Share Posted September 5, 2009 I suggest looking at this tutorial :-) http://www.phpfreaks.com/tutorial/handling-xml-data Quote Link to comment Share on other sites More sharing options...
BloodyMind Posted September 6, 2009 Share Posted September 6, 2009 sure you can, take a look at this: http://fr.php.net/manual/en/class.domdocument.php so useful Quote Link to comment Share on other sites More sharing options...
kaplanyo Posted September 6, 2009 Author Share Posted September 6, 2009 Thanks guys!!!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.