Incredibly stupid question from Newb
Just looking into XML for the first time. Thanks for any help.
I have a flash script that loads an XML file.
I store my data in a Db (MySQL) and use PHP to interact with it.
My host does not allow fwrite, fopen, etc. and does not provide access outside of the web root (Godaddy), so writing the XML with php and saving it to the server would not be very easy for me or secure I would think.
Q: Can the flash script call a URL that contains a php file that outputs XML (using DOM I guess) and actually load it without the file ever being saved anywhere, or displayed for that matter?
Is that the way this works?
I'm ultimately trying to provide an option to add data from the Db to the Flash movie by marking a checkbox in an editor, with XML being the intermediary.
Thanks for your help.
As long as your flash script can open the PHP file via HTTP (as opposed to a local file-system call), it should be doable. You would need to open it via a "http://..." type link so that the web server processes through PHP before outputting the result to the calling Flash script.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Thanks for your reply. It worked. Now I can feed all kinds of flash without having to use loadVars(). Most of the flash I see is set to load data from xml, so this will open up a lot of doors.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)