nchagial
11-27-2005, 02:52 AM
hello,
I am trying to write some data into an xml file through a php script.
In flash I call
sendData.sendAndLoad("saveXML.php", sendData, "POST");
to send a string to the php.
In the php file i do the following:
<?php
$FileName = "myXML.xml";
$FilePointer = fopen($FileName, "w+");
$output = $xml; //data sent from Flash
fwrite ($FilePointer, $output);
print $output;
fclose ($FilePointer);
?>
Everything works fine, exept that when I have " and ' symbols in the string I am sending over, in the saved XML file i get \" and \', and as a result I cannot parse the XML file correctly.
Do you know any way to overcome this?!
Thanks,
Nikos
I am trying to write some data into an xml file through a php script.
In flash I call
sendData.sendAndLoad("saveXML.php", sendData, "POST");
to send a string to the php.
In the php file i do the following:
<?php
$FileName = "myXML.xml";
$FilePointer = fopen($FileName, "w+");
$output = $xml; //data sent from Flash
fwrite ($FilePointer, $output);
print $output;
fclose ($FilePointer);
?>
Everything works fine, exept that when I have " and ' symbols in the string I am sending over, in the saved XML file i get \" and \', and as a result I cannot parse the XML file correctly.
Do you know any way to overcome this?!
Thanks,
Nikos