2014/08/22

PHP HTML Input 數量限制

遇到了奇怪的問題,HTML 中有些 Input 抓的到值,有些不行?查了 PHP 的設定才發現原來 PHP 中 Input 數量有限制,預設最大為 1000 。




max_input_vars integer
How many input variables may be accepted (limit is applied to $_GET, $_POST and $_COOKIE superglobal separately). Use of this directive mitigates the possibility of denial of service attacks which use hash collisions. If there are more input variables than specified by this directive, an E_WARNING is issued, and further input variables are truncated from the request.
請參考 http://php.net/manual/en/info.configuration.php#ini.max-input-vars


沒有留言:

張貼留言