I am passing data from an embedded device using Content-Type = multipart/form-data.

My data passed nicely into $ variables when the server ran with PHP 4.4.4 but now that it is upgraded to 5.2.3 none of the data is passing.

I am wondering if I need to change an ini setting.

To see my PHP settings try this link for phpinfo():
http://workorders.body-pro.com/dumpPHPInfo.php

Thanks

Greg

    register_globals = Off

    just used: import_request_variables ( string $types [, string $prefix] )

    to bring them into the global variable space.

    Thanks

    Greg

      gmrobert wrote:

      just used: import_request_variables ( string $types [, string $prefix] )

      to bring them into the global variable space.

      But why would you do that? Assuming you don't add a prefix, that's simply re-introducing the security hazards that prompted register_globals to be defaulted to Off (and even removed entirely from PHP6). Not to mention the fact that you still can't be sure the data is coming from where you think it is.

      The solution would actually be to use $POST, $GET, etc. instead. More information on these superglobal arrays can be found here: [man]variables.predefined[/man].

        I'll look at that.

        For what I am doing there should not be a security issue as I am simply pulling data from an embedded device. But I will double check my code.

        Thanks

          Write a Reply...