Jump to content

[SOLVED] Can i use PHP to write an actual XML file


kaplanyo

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.