增加最大尺寸后 [英] 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屋!
查看全文