Home  >  Article  >  Backend Development  >  修改PHP下传文件大小的限制

修改PHP下传文件大小的限制

WBOY
WBOYOriginal
2016-06-13 10:39:12683browse

修改PHP上传文件大小的限制

修改php.ini
max_execution_time = 0,这个是每个脚本运行的最长时间,单位秒,0表示没有限制

max_input_time = 0, 这是每个脚本可以消耗的时间,单位也是秒,0表示没有限制

memory_limit = 256M,这个是脚本运行最大消耗的内存,根据你的需求更改数值256M?
post_max_size =200M,表单提交最大数据,此项不是限制单个文件的大小,而是针对整个表单的提交数据进行限制
upload_max_filesize = 180M,上载文件的最大许可大小

另外要说明的是,post_max_size 大于 upload_max_filesize 为佳。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn