The problem of data packet loss transmitted by php big form using the post method

Source: Internet
Author: User
The problem of data packet loss transmitted by php big form using the post method
In the production environment, a huge form, including three images, hundreds of input boxes and nearly one thousand checkboxes, is intercepted when The post method is used to submit data to the background.

In the production environment, a huge form, including three images, hundreds of input boxes and nearly one thousand checkboxes, is intercepted when The post method is used to submit data to the background. All the Way to debug, found that PHP get $ _ POST, the data is insufficient. It was initially thought that it was a problem with post_max_size and upload_max_size in php, but setting it to MB does not work. Later I thought it was a problem of limitpostdate in Apache, and it didn't work after it was set up. Later, when wireShark was installed on the client to capture packets, it was found that tcp windows full appeared in the middle of the TCP packet, so it was thought that the browser did not correctly transmit the total package size during the second handshake of TCP. Until the end, in the Apache error. the following error is found in the log: PHP Warning: Unknown: Input variables exceeded 1000. in the original PHP, the number of parameters in the default post is 1000, and the excess part is automatically thrown away.

Adjust the value. for example, set it to 2000: set max_input_vars = 2000 in PHP. ini.

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.