大 $_POST 变量被切断 [英] Large $_POST variable get's cut off

查看:54
本文介绍了大 $_POST 变量被切断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过 POST 向服务器发送一个大数组,但是当我输出 $_POST 变量时,一些参数被切断

echo '

'.print_r($_POST, true).'</pre>';

似乎数组总是以相同的长度被切断,所以如果我在数组的开头添加元素,末尾的一个元素将被删除.

这种情况只发生在某些服务器上,所以我猜这是设置错误或某些服务器限制.

post_max_size 总是在 64 mb 以上,帖子甚至不接近那个大小

我该如何解决这个问题?

解决方案

我在搜索过程中偶然发现了这个性质类似的问题.如果有人登陆此页面,您可能还想查看 Robinson 先生的回答:

<块引用>

也尝试更改 max_input_vars.更多信息: ....

https://stackoverflow.com/a/12667018/11787139

I'm send a large array via POST to the server but when I output the $_POST variable some parameters are cut off

echo '<pre>'.print_r($_POST , true).'</pre>';

It seems the array is always cut off at the same length so if i add elements at the beginning of the array one element at end will get removed.

This happens only on some servers so I guess it's a wrong setting or some server limitations.

The post_max_size is always above 64 mb and the post is not even close to that size

How can I get around this?

解决方案

I stumbled upon this question in my search with a similar nature. If anyone lands on this page, you might want to also check out this answer by Mr. Robinson:

Try changing max_input_vars as well. More information: . . . .

https://stackoverflow.com/a/12667018/11787139

这篇关于大 $_POST 变量被切断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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