PHP write XML via Flash


If you remember my previous post on Flash – sendandload  post – https://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)

Advertisements

2 thoughts on “PHP write XML via Flash

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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