LNMP Post Variable problem

Source: Internet
Author: User
Recent output on the server "PHP message: PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0" while reading response header from upstreamwill continue to slow down the server

Modify php.ini according to data; max_input_vars = 1000 parameter. Always feel it is not the best way to modify this configuration, is there any relevant experience?

Reply content:

Recent output on the server "PHP message: PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0" while reading response header from upstream will continue to slow down the server

Modify php.ini according to data; max_input_vars = 1000 parameter. Always feel it is not the best way to modify this configuration, is there any relevant experience?

The error warning is already obvious. You feel that the configuration is not the best way to change the reason is, in case the next time there are 10,000 parameters, you have to change the configuration. So you have to check from the source why a post will have so much data and there are no optimized points.

This is a new thing after php5.3. A bug that resolves a memory overflow caused by a previous mass parameter.
You should look at the source to see what is going on and try to optimize the source, and we have encountered this problem before. is the forum to save the various plate settings when, in fact, all the data are saved at once. As a result, this error is caused. Later by optimizing business logic. Fix the problem.
This will not only prompt the error, but will also truncate the following data: For example the original is 200. You post 201 elements. The last element was lost.

  • Related Article

    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.