Hi,
I hope someone could help me on this.
I have set the following parameters in php.ini
always_populate_raw_post_data and
register_globals to On. However, I still face the
error "Undefined index: HTTP_RAW_POST_DATA"
I am using php version 4.3.6 and apache server 1.3.31.
Thanks,Sally

I have the following coding snippet....
:
:
include('connect.php');
include('convertgeom.php');
$data = $GLOBALS["HTTP_RAW_POST_DATA"];
$thePath= "http://".$SERVER_NAME.$PHP_SELF;
$server="http://".$SERVER_NAME;
:
:

    Try $_SERVER['RAW_POST_DATA']. And lose the register_globals, for heaven's sake.

      Nope. it doesn't work for me as well.
      Got this error...
      Undefined index: RAW_POST_DATA

        Found this:

        It should be noted that $HTTP_RAW_POST_DATA only exists if the encoding type of the data is -not- the default of application/x-www.form-urlencoded, and so, to accessing raw post data from an HTTP form requires setting enctype= in your HTML.

        And it appears that your use of $GLOBALS was correct after all.

        Try setting the enctype of your form.

          Write a Reply...