PHP write XML via Flash

If you remember my previous post on Flash – sendandload  post –
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 thoughts on “PHP write XML via Flash

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s