By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,719 Members | 1,224 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,719 IT Pros & Developers. It's quick & easy.

XML being passed to PHP via POST

P: n/a
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.

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

<se******@swbell.net> wrote in message
news:41*****************@news.dallas.sbcglobal.net ...
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.

Hi,
not much help, but, add this to your page :-

echo '<pre>';
print_r($_POST);
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>';
print_r($GLOBALS);
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.

HTH,
Martin
Jul 17 '05 #2

P: n/a
In article <41*****************@news.dallas.sbcglobal.net>, se******@swbell.net wrote:
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.


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>
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.