XML and PHP
I have my site using a php database, and I have a flash movie that is importing an XML file for the data.
I was wondering if there is a way for my clients to update the XML file? Kinda like a CMS for a website.
I have my site using a php database, and I have a flash movie that is importing an XML file for the data.
I was wondering if there is a way for my clients to update the XML file? Kinda like a CMS for a website.
Yes. I have done that very thing on two different sites.
I have a PHP, MySQL / DataAssist created Admin page that I created to perform the management function. Add, Edit, Update that kind of thing.
I have a Button that physically WRITES (fwrite) the XML file output that I hand coded to meet the XML requirements.
All in all it works very well. Once the new file is written the Flash file will instantly recognize the changes the next time that page is opened.
PHP has a pretty cool library called SimpleXML that can also be used to read/write XML files pretty easily. Check it out at simplexml.
For your purposes, it might be easier to just write the XML file yourself similar to what Tom is doing.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.