php5.4 Normal, php5.2 cannot receive the post array.

Source: Internet
Author: User
Originally the project was transplanted from PHP5.4 to 5.2 when the login was unable to receive the post array, and then found that writing a normal form can not receive the post array.
Compare the php5.4 and 5.2 configuration file, try to change a few different configuration items also does not work, such as Variables_order changed to "GP" after the post array or empty.
Please help analyze what the problem is. Thank you.


Reply to discussion (solution)

I printed $_get,$_post,$_cookie,$_env, $_server, and I didn't find the name in the form (User_name,pass_word).

Modify PHP.ini:
Apc.rfc1867=0
Variables_order change from Egpcs to GP
Register_globals change from on to off
Register_globals change from on to off
Register_long_arrays change from on to off

Modify the form:
Enctype= "Application/x-www-form-urlencoded"

None of the above has any effect

Found the problem:
It's my definition. In the. htaccess file, post_max_size and upload_max_filesize exceed 2G.
Change Post_max_size to 1990m,upload_max_filesize to 1900M and then resolve.

What does the post.php output?

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.