PHP modifies Max_input_vars, Max_execution_time, Max_input_time in Linux

Source: Internet
Author: User

PHP starts with 5.3.9 to add a variable max_input_vars to limit the number of forms submitted.

For example, Phpmysqladmin reads a database table and writes to the editor, but there are 128 database fields, and then each field has 11 input boxes, about 1400 input, and the Ax_input_vars defaults to 1000.


Edit PHP.ini File

/etc/php.ini
#DA
/usr/local/php54/lib/php.ini
Cloudlinux
/opt/alt/php54/etc/php.ini
#cloudlinux修改过添加后执行
Cagefsctl--force-update

modifying values

Max_execution_time = 300
Max_input_time = 180
Max_input_vars = 3000

Note: Max_input_vars default value of 1000 causes multiple form submission to fail

[25-sep-2014 15:19:30] WARNING: [Pool www] child 28329 said into stderr: notice:php message:php Warning:Unknown:Input variables exceeded 10 To increase the limit change max_input_vars in php.ini. In Unknown on line 0 "
Tip the number of input variables exceeds 1000, it is recommended that the max_input_vars,php in the php.ini file be modified to add a variable from 5.3.9 max_input_vars to limit the number of forms submitted.

Oh, my God. This function (similar to the Phpmysqladmin function, read the database table, and then write to the editor, then the database field has 128, then each field has 11 input boxes) There are about 1400 input, (how painful the understanding, for Mao so hanging, Develop a table with so many fields),

And then I joined the 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.