请求实体太大PHP太大、实体、PHP

2023-09-02 09:49:18 作者:酒煙妓

在我的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 和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).