PHP max_input_vars 限制提交的表单数量

执行网站程序时遇到:

Warning! Your PHP configuration limits the maximum number of fields allowed in a form 1000 for max_input_vars.
Please ask your hosting provider to increase this limit to 1139 at least, or you will have to edit the translation files.

查了一下,发现 PHP max_input_vars 是用来限制提交的表单数量的,从 PHP 5.3.9 开始。

修改 php.ini,找到 ;max_input_vars = 1000

修改为:

max_input_vars = 2500

数值看你需要!

相关文章