PHP空$ _ POST [英] PHP Empty $_POST

查看:140
本文介绍了PHP空$ _ POST的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发送数据通过HTTP POST到PHP。这工作得很好超过8MB(8192KB)较短的数据,但是当数据量较高的发送,PHP显示了 $ _ POST 变量是空的。我强调的是, $ _ POST 变量不包含连后字段的名称,它的存在是一个空数组。临界点似乎是8.0MB和9.0MB之间,并继续当然更高

I am sending data to PHP through HTTP POST. This works fine for data shorter than 8MB (8192KB), however when higher quantities of data are sent, PHP shows the $_POST variable to be empty. I emphasize that the $_POST variable does not even contain the names of the post fields, it exists as an empty array. The critical point seems to be between 8.0MB and 9.0MB, and continues higher of course.

我已经尝试没有成功如下:

I have attempted the following with no success:

ini_set('memory_limit', '500M');
ini_set('post_max_size', '220M');
ini_set('upload_max_filesize', '220M');

我需要的数据通过HTTP POST。数据不能被上传作为文件

I require the data to pass through HTTP POST. The data cannot be uploaded as a file.

也可以阿帕奇负责呢?

任何帮助将是AP preciated。

Any help would be appreciated.

推荐答案

看看的的文档评论。在执行脚本时,ITAS来不及改变sopme设置,包括至极的post_max_size ,例如。要改变这些值,尝试使用的.htaccess - 文件是这样的:

take a look at the documentation comments. when the script is executed, itäs too late to change sopme setting, wich includes post_max_size, for example. to change these values, try to use a .htaccess-file like this:

php_value upload_max_filesize 200M
php_value post_max_size 200M

或者直接在更改这些设置你的的php.ini

这篇关于PHP空$ _ POST的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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