请求实体太大PHP [英] Request Entity Too Large PHP

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

问题描述

在我的CakePHP的网站之一,我得到这个错误。

In one of my CakePHP site, I got this error.

请求实体太大

我不知道是什么问题。我想,我通过表单张贴数据太大。我在搜索引擎搜索到这一点,并得到了,我将不得不增加的post_max_size 。缺省情况下,我认为它被设置为8M。

I don't know what is the problem. I think the data that I am posting through form is too large. I searched this in search engine and got that I will have to increase post_max_size. Be default I think it is set to 8M.

但不知道如何增加的post_max_size CakePHP中,做些什么呢?

But don't know how to increase post_max_size in CakePHP and what to do for it?

感谢。

推荐答案

的post_max_size 和<一href="http://de.php.net/manual/en/ini.core.php#ini.upload-max-filesize"><$c$c>upload_max_filesize是的php.ini设置。您可以直接在php.ini中或通过 ini_set 。我不知道这是否可以设置一些蛋糕,内部工具为好。

post_max_size and upload_max_filesize are PHP.ini settings. You can set them either directly in PHP.ini or via ini_set. I don't know if this can be set with some Cake-internal tools as well.

但是,错误也可以由RequestBodyLength Apache中设置的限制造成的一>(假设你的Apache下运行)。

However, the error could also be caused by a set limit of the RequestBodyLength in Apache (assuming you are running under Apache).

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

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