Blog

Role of max_input_vars in php.ini

Today while working on a project, after submitting a form, the array $_POST was not displaying value of all variables of the form. Since the method of the form was POST and so first of all I increased the value of the parameter post_max_size in php.ini file. But even after that the array $_POST was not storing value of all variables. Then I started looking for all other parameters related to variables in php.ini. I found that the value of the parameter max_input_vars was set to 1000. So due to this, the array $_POST was containing the value of first 1000 variables only. I then increased this value to 3000. Then the program started working perfectly. So while changing the value of post_max_size we should also check the value of max_input_vars parameter in php.ini file.

<< Go back to the previous page

Share:  Add to Facebook Tweet This Add to Delicious Submit to Digg Stumble This

Published on  December 18th, 2019

Quick Notes

  • cat man displays the content of man
  • man cat displays the manual of cat
  • date displays both date and time
  • vi is visual editor in text mode