PHP失去了表单POST参数

编程入门 行业动态 更新时间:2024-10-28 02:20:32
本文介绍了PHP失去了表单POST参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个使用POST方法发送数据的表单,大约需要在MySQL中插入3000个数组键,如下所示:

client_add [] = 1 client_add [] = 3 client_add [] = 47 ...

问题在于我的本地主机在开发服务器上工作得很好。在生产中,我只获得大约1000行,在localhot上它似乎迷路了,我们遇到了php.ini文件,开发服务器的一切都设置为比我的本地主机更多的内存。

我的想法已经用完了。 解决方案

PHP有一个ini设置,它决定了POST请求的大小,你可以在 post_max_size 的名字下找到它。

另外,如果你有 Suhosin 补丁安装后,它会强制限制您可以在每个请求上提交的POST变量的数量。我认为这是默认的2000左右。

I have a form which sends data with the POST method, about 3000 array keys to be inserted in MySQL like this:

client_add[]=1 client_add[]=3 client_add[]=47 ...

The problem is on my localhost on the development server works just fine. On production I only get about 1000 rows, on the localhot it seems to get lost, we confronted the php.ini files and the development server has everything set to more memory than my localhost.

I've run out of ideas.

解决方案

PHP has an ini setting which dictates the size of your POST request, you can probably find it in your ini under the name of post_max_size.

Also, if you've got the Suhosin patch installed it will enforce a limit on the number of POST variables you can submit on each request. I think this is around 2000 by default.

更多推荐

PHP失去了表单POST参数

本文发布于:2023-10-10 12:01:04,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表单   失去了   参数   PHP   POST

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!