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

查看:32
本文介绍了请求实体太大 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.

但是不知道在 CakePHP 中如何增加 post_max_size 以及如何处理?

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

谢谢.

推荐答案

post_max_sizeupload_max_filesize 是 PHP.ini 设置.您可以直接在 PHP.ini 中设置它们,也可以通过 ini_set.不知道是不是也可以用Cake内部的一些工具来设置.

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.

但是,该错误也可能是由 设置限制引起的Apache 中的 RequestBodyLength(假设您在 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天全站免登陆