XML being passed to PHP via POST

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • selywork@swbell.net

    XML being passed to PHP via POST

    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.

  • Martin Cooper

    #2
    Re: XML being passed to PHP via POST


    <selywork@swbel l.net> wrote in message
    news:416ae9ac.1 837055922@news. dallas.sbcgloba l.net...[color=blue]
    >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.
    >[/color]
    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($GLOBAL S);
    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


    Comment

    • Tim Van Wassenhove

      #3
      Re: XML being passed to PHP via POST

      In article <416ae9ac.18370 55922@news.dall as.sbcglobal.ne t>, selywork@swbell .net wrote:[color=blue]
      > 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.[/color]

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

      some thingies that might interest you:

      The official website of Ghostwire: Tokyo. Sign-up to stay updated on the latest news!


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

      Comment

      Working...