load xml into php script
Posted: Thu Jul 13, 2006 8:46 am
Hello there, this is baffling me a bit.
What I want to do is send an XML object from Flash to a PHP proxy script which will then contact external resources with the data contained in the XML object.
so the actionscript looks something like this:
What I want to know is - how does proxima.php load that data? Do I need to save the XML as a file then open that from the script or can it actually be passed into the php some how?
Any help would be really appreciated.
What I want to do is send an XML object from Flash to a PHP proxy script which will then contact external resources with the data contained in the XML object.
so the actionscript looks something like this:
Code: Select all
var xmlVal:XML = new XML();
//xmlVal.xmlDecl = "<?xml version=\"1.0\"?>";
//xmlVal.docTypeDecl = "\"<!DOCTYPE library[<!ELEMENT book (#PCDATA)>]>";
var xnNewElement:XMLNode = new XMLNode(1, "location");
var xnNewTextNode:XMLNode = new XMLNode(3, "London");
xmlVal.appendChild(xnNewElement);
xnNewElement.appendChild(xnNewTextNode);
//trace(xmlVal.toString());
xmlVal.send(proxima.php);What I want to know is - how does proxima.php load that data? Do I need to save the XML as a file then open that from the script or can it actually be passed into the php some how?
Any help would be really appreciated.