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?
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().
phpinfo()
-:
, , . 520 post_max_size? , print_r($_REQUEST) script?
post_max_size
print_r($_REQUEST)
, 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
, post_max_size, 8M.
, , , .
ini_get ('post_max_size') , , .
You cannot change it from ini_set, however you can change the directive from .htaccess.
I think the POST restriction is what is configured in php.ini (8M by default?)
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