dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: $HTTP_RAW_POST_DATA not working??

  1. #1
    Senior Member
    Join Date
    Sep 2002
    Posts
    185

    $HTTP_RAW_POST_DATA not working??

    HI,

    I'm searching for a way to save an xml tree made in flash mx
    to the server. I use this example code in flash:

    PHP Code:
    test = new XML()
    treeData test.createElement("TEST")
    treeData.attributes.BLABLA "BLABLA"
    test.appendChild(treeData);
    but.onPress = function(){
        
    test.send("upload.php","_blank")

    it works fine, but my php-script won't write the data into the file
    I use this php script

    PHP Code:
    <?
    $filename 
    "test.xml";
    $tree $HTTP_RAW_POST_DATA;
    $fp fopen$filename,"w+");
    fwrite $fp$tree );
    fclose$fp );
    ?>
    can somebody tell me why the $HTTP_RAW_POST_DATA isn't filled in. It doesn't reseave(?) the xml tree from flash. Is there an other way do to this?

    I also tried using the LoadVars object in Flash to send the tree and the $_POST array to recieve in php. The xml-tree that is saved is unvalid . It looks like this:
    <TEST BLABLA=\"BLABLA\" />

    thx,
    P-Sch1ft
    I think...I dreamed...in pixels last night...

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    This is from the scripting and backend groups sticky about PHP:

    http://www.flashkit.com/board/showth...hreadid=389551

    Does that solve your issues?

    Thanks

    Luke
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  3. #3
    Senior Member
    Join Date
    Sep 2002
    Posts
    185
    hi,

    i'm not sure (i don't know php that well). But i noticed is that the server administrator has disabled the http_raw_post_data.
    i'm searching for a way to overcome that

    thx,
    p-sch1ft
    I think...I dreamed...in pixels last night...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center