PHP发布限制为1000个变量 [英] php Post limited to 1000 variables

查看:105
本文介绍了PHP发布限制为1000个变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表格很大,从萤火虫中可以看到所有元素的值都已正确发送,但是当我print_r($ _ POST)时,只显示了1000个变量.我的max_post_size设置为2500万,所以我知道这不是问题,我在php.ini中搜索了诸如"post"和"max"之类的关键字,但没有找到任何内容.

I've got a large form and I can see from firebug that all of the elements' values are being sent properly, but when I print_r($_POST) there are only 1000 variables displayed. My max_post_size is set to 25M so I know that's not the issue and I searched through my php.ini for keywords like 'post' and 'max' and I didn't find anything.

1000只是我要传递的元素的1/4左右,所以显然这对我来说是一个很大的问题,我非常感谢我能获得的任何帮助.

1000 is only about 1/4 of the elements that I'm passing so obviously this is a pretty big issue for me, I really appreciate any help I can get.

推荐答案

我在这里看到了你所做的事情.

I see what you did here.

max_input_vars, 1000

为了防止散列冲突攻击而引入: http://www.phpclasses .org/blog/post/171-PHP-Vulnerability-May-Halt-Millions-of-Servers.html 但是在5.3.9中失败了: http://www.phpclasses .org/blog/post/175-Another-Serious-Security-Bug-on-PHP-539.html 因此,如果出现问题,则应更新到5.3.10 +.

Introduced in order to prevent hash collision attack: http://www.phpclasses.org/blog/post/171-PHP-Vulnerability-May-Halt-Millions-of-Servers.html But failed in 5.3.9: http://www.phpclasses.org/blog/post/175-Another-Serious-Security-Bug-on-PHP-539.html So you should update to 5.3.10+ if that is problem.

这篇关于PHP发布限制为1000个变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆