Php5.4 is normal, and the POST array cannot be received under php5.2.

Source: Internet
Author: User
Php5.4 is normal, and the POST array cannot be received under php5.2. When I port the project from PHP5.4 to 5.2, I find that the login fails to receive the POST array, and then I find that writing a normal form cannot receive the POST array.
Compare the configuration files of php5.4 and 5.2, and try to modify several different configuration items. for example, if variables_order is changed to "GP", The POST array is still empty.
Please help analyze what the problem is. Thank you.


Reply to discussion (solution)

I printed $ _ GET, $ _ POST, $ _ COOKIE, $ _ ENV, and $ _ SERVER and did not find the name (user_name, pass_word) in the form ).

Modify php. ini:
Apc. rfc1867 = 0
Change variables_order from EGPCS to GP
Change register_globals from On to Off
Change register_globals from On to Off
Change register_lOng_arrays from On to Off

Modify form:
Enctype = "application/x-www-form-urlencoded"

None of the above works

Problems found:
In my Defined. htaccess file, post_max_size and upload_max_filesize exceed 2 GB.
Change post_max_size to 1990 M and upload_max_filesize to 1900M.

What is 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.