Post array limit?

Try changing max_input_vars as well. More information: PHP max_input_vars and big forms.


PHP introduced the max_input_vars config option, which is defaulted to a value of 1000. Check out the Runtime Configuration section of the PHP manual.

The value can be changed by updating the server's php.ini, adding an .htaccess file, or adding a line to httpd.conf.


Rutunj sheladiya tells you all about max_input_vars limit, which is your main question.

My solution was to json_encode the array so you only send a encoded string. Then in the destination server you must json_decode the array.

I think it's a clean solution since it can be a huge array and you couldn't know its size.

Now this only may be limited with the max_post_size if the json encoded string's size is higher than the value you have configured.

Greetings.

Tags:

Html

Php