News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Arul Pradad's Blog:
Saving XML from Flash, using PHP
June 21, 2006 @ 18:39:53

On Arul Pradad's blog today, there's a quick post talking about a simple way to save the XML coming from a Flash file with PHP.

I was trying to create a XML file on the server, using PHP. The XML string was being sent from Flash, by adding the same as a property to a LoadVars obj. ( Since I had to send few other data items as well - other than the XML string, I couldn't use Flash's XML.sendAndLoad method.

He shows the code that was giving him troubles and traces the path he took to discover the ultimate problem with the XML - the quotes in the file were being escaped, resulting in PHP's inability to parse it correctly. A simple call to stripslashes solved that, and the app works just fine.

0 comments voice your opinion now!
save xml flash parse stripslashes save xml flash parse stripslashes


blog comments powered by Disqus

Similar Posts

Enrico Zimuel's Blog: XML to JSON in PHP: an odyssey

Fabien Potencier's Blog: Symfony Service Container: The Need for Speed

The Bakery: Six New Components/Articles/Tutorials (SOAP, XHR, Tickets, Models, Releases & Flashes)

David Sklar\'s Blog: Speed - DOM traversal vs. XPath in PHP 5

Thomas Weinert: FluentDOM 5 + XML Namespaces


Community Events

Don't see your event here?
Let us know!


api library symfony2 release example install laravel podcast framework community introduction opinion series application conference language configure performance interview php7

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework