增加最大帖子大小 [英] Increasing the maximum post size
本文介绍了增加最大帖子大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有大量数据被提交而没有文件上传,并且超出了$_SERVER['CONTENT_LENGTH']
.可以增加吗?
There is a lot of data being submitted no file uploads and the $_SERVER['CONTENT_LENGTH']
is being exceeded. Can this be increased?
推荐答案
有 2 个不同的地方可以设置:
There are 2 different places you can set it:
php.ini
post_max_size=20M
upload_max_filesize=20M
.htaccess/httpd.conf/虚拟主机包含
.htaccess / httpd.conf / virtualhost include
php_value post_max_size 20M
php_value upload_max_filesize 20M
使用哪个取决于您可以访问的内容.
Which one to use depends on what you have access to.
.htaccess 不需要重启服务器,但 php.ini 和其他 apache conf 文件需要.
.htaccess will not require a server restart, but php.ini and the other apache conf files will.
这篇关于增加最大帖子大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文