PHP write XML via Flash

By vinodvv

If you remember my previous post on Flash – sendandload  post – http://vinodvv.wordpress.com/2006/04/26/flash-sendandload-xml/
on which I had said about how you can send xml data to the back end programming language like PHP. One thing which I quickly noticed when I wanted to write a physical xml file on the server, The xml attribute tags contained \ (slashes) before every " (quote)

For eg: <node name=\"vinod\" />

and while I tried to read the xml file back in to flash it wouldn't read the node. 

The solution: before you write the xml file use stripslashes function available on the PHP  to strip all slashes eg: stripslashes($xmldata)

2 Responses to “PHP write XML via Flash”

  1. Nate Says:

    You’re encountering the “magic quotes” feature in PHP:
    http://www.php.net/magic_quotes

  2. Tutorials | Flash Navigation with Actionscript and XML | Lemlinh.com Says:

    [...] PHP write XML via Flash [...]

Leave a Reply