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)
May 22, 2006 at 8:19 PM |
You’re encountering the “magic quotes” feature in PHP:
http://www.php.net/magic_quotes
August 6, 2008 at 5:31 PM |
[...] PHP write XML via Flash [...]