php $_POST 最大数组大小
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9807100/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
$_POST max array size
提问by MatthiasLaug
I have a really big form with >1000 Elements. They are already nested inside the form html structure
我有一个超过 1000 个元素的非常大的表单。它们已经嵌套在表单 html 结构中
{foreach from=$result item=item}
<tr>
<td><input type="text" value="{$item.receiver.name}" name="item[{$item.id}][receiver][name]" /></td>
<td><input type="text" value="{$item.receiver.account_number}" name="item[{$item.id}][receiver][account_number]" /></td>
<td><input type="text" value="{$item.receiver.bank_code}" name="item[{$item.id}][receiver][bank_code]" /></td>
<td><input type="text" value="{$item.amount}" name="item[{$item.id}][amount]" /></td>
<td><input type="text" value="{$item.usage.first}" name="item[{$item.id}][usage][first]" /></td>
<td><input type="text" value="{$item.usage.second}" name="item[{$item.id}][usage][second]" /></td>
<td><input type="text" value="Yourdelivery GmbH" name="item[{$item.id}][usage][third]" /></td>
<td>
<input type="checkbox" value="1" name="item[{$item.id}][import]" />
</td>
</tr>
{/foreach}
It is to create a DATAUS file for mass bank transactions. But after reaching more than 1000 rows no more elements are added to the $_POST array and the debugger shows the following element count.
它是为大量银行交易创建一个 DATAUS 文件。但是在达到超过 1000 行后,不再向 $_POST 数组添加元素,并且调试器显示以下元素计数。
I already added max_post_size to 100M for testing, but nothing helped.
我已经将 max_post_size 添加到 100M 进行测试,但没有任何帮助。
回答by Michael Robinson
Try changing max_input_vars
as well. More information: PHP max_input_vars and big forms.
也尝试改变max_input_vars
。更多信息:PHP max_input_vars 和 big forms。