POST argument limit in html or php

Is there any limit to the POST arguments? I have a situation where on a dev server my form with more than 520 args is placed and saved without problems, where when creating env it saves only up to 499 arguments ...

Any ideas?

+5
source share
5 answers

I do not think that there is a limit on the number of variables sent via POST, only by their accumulated size. The limit varies from server to server.

: Suhosin PHP hardening . - 200. Suhosin Ubuntu, . ​​@Pascal Martin, !

POST :

, phpinfo().

-:

, , . 520 post_max_size? , print_r($_REQUEST) script?

+10

, PNP.INI :

max_input_vars

PHP: 5.4.16 - 1000.

: " ( $_GET, $_POST $_COOKIE )"

Ref.: http://www.php.net/manual/en/info.configuration.php#ini.max-input-vars

+2

, post_max_size, 8M.

, , , .

ini_get ('post_max_size') , , .

You cannot change it from ini_set, however you can change the directive from .htaccess.

+1
source

I think the POST restriction is what is configured in php.ini (8M by default?)

0
source

You need to increase POST_MAX_SIZE in php.ini (or use ini_set () on the page).

http://uk.php.net/manual/en/ini.core.php#ini.post-max-size

0
source

All Articles