请求实体太大PHP [英] Request Entity Too Large 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$c$c>是的php.ini设置。您可以直接在php.ini中或通过 ini_set $要么将它们C $ C>
。我不知道这是否可以设置一些蛋糕,内部工具为好。
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屋!