XML being passed to PHP via POST

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am using macromeda Flash to create anXML object which I pass to PHP.
I need to know how to recieve it into PHP so I can process it in PHP.
For now all I want to do is display the XML on the screen.

To start at the simplest point I am trying this:

$my_xml = $_POST;
echo $my_xml;

Of course all it echos is "Array"

If I have tried a few other things, but I am shooting in the dark.

Any help would be greatly appreciated.

Re: XML being passed to PHP via POST

Quoted text here. Click to load it

With wrappers, $data = file_get_contents('php://input');

some thingies that might interest you:
http://www.amfphp.org /
http://ghostwire.com/resources/phpobject /

Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info

Re: XML being passed to PHP via POST

Quoted text here. Click to load it
    not much help, but, add this to your page :-

echo '<pre>';
echo '</pre>';

It won't help interpreting the data, but will do a recursive print to the
browser of all the post data. At leas then, you'll know what your dealing
with.  Depending on the content of the post, you might also want to try :-

echo '<pre>';
echo '</pre>';

This will produce a lot of output, but you'll be able to inspect all data
sent to your page including session data etc. which is usefull for debugging
/ development.


Site Timeline