$_POST 不包含所有数据 [英] $_POST doesn't contain all data

查看:39
本文介绍了$_POST 不包含所有数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天前,我们在网上商店遇到了问题.(Gambio 基于 xtC)

Since a few days ago, we've a problem in an online shop. (Gambio bases on xtC)

我们有一个包含 3000 多个文本字段的公式.大约前三分之一的工作正常;其余为空,为空.

We have a formula with more than 3000 text fields. About the first third of them work correctly; the rest is null, empty.

似乎 $_POST 被正确填充,但在服务器上,应用程序得到一个减少的数组.

It seems that $_POST is filled correctly, but on the server, the app gets a reduced array.

我在不同的电脑、不同的浏览器、不同的内容上测试过:=> 总是一样的.

I tested it on different computers, with different browsers, with different content: => always the same.

Server: Linux infong 2.4 #1 SMP Mon Oct 10 09:34:36 UTC 2011 i686 GNU/Linux 

PHP 版本 5.2.17(构建 12-29-2011)

PHP Version 5.2.17 (build 12-29-2011)

post_max_size 是 8 MB.

问题是在 12-30-2011 发现的,所以它可能与服务器上的新版本有关.

The problems were recognized on 12-30-2011, so it might be connected with the new build on the server.

有人对这个问题有想法吗?

Has somebody ideas concerning this problem?

推荐答案

问题是在 12-30-2011 发现的,所以它可能与服务器上的新版本有关.

The problems were recognized on 12-30-2011, so it might be connected with the new build on the server.

如果您使用的是 linux 发行版提供的 PHP 版本,则它们很可能向后移植了 这个针对 PHP 5.3 和 5.4 的补丁,旨在缓解 可能的攻击媒介,影响 PHP 和许多其他语言和库.

If you're using a PHP version provided by your linux distribution, it's very likely that they backported this patch to PHP 5.3 and 5.4, designed to mitigate a possible attack vector that impacts PHP and numerous other languages and libraries.

如果是这种情况,请尝试转储 phpinfo() 并查找 max_input_vars.如果它在那里,您可以在 php.ini 中将它设置为更高的数字,因为您认为合适.如果您没有看到它,很可能您没有收到那个确切的补丁,并且您的发行版已经硬编码了该号码.

If this is the case, try dumping a phpinfo() and look for max_input_vars. If it's there, you can set it in php.ini to a higher number, as you see fit. If you don't see it, it's likely that you didn't receive that exact patch and the number has been hard-coded by your distribution.

这篇关于$_POST 不包含所有数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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