Home  >  Article  >  Backend Development  >  php更动最大可上传文件大小

php更动最大可上传文件大小

WBOY
WBOYOriginal
2016-06-13 12:05:021116browse

php更改最大可上传文件大小

?

1. 打开windows下的php.ini文件

2. 查找max_execution_time=30 ,更改为max_execution_time=0,0表示没有限制

3. 查找upload_max_filesize=2M,更改为 upload_max_filesize=100M,表示最大可上传的文件为100M

4. 修改post_max_size=150M,默认为8M,post_max_size表示数据包的最大限制

?

php文件上传配置

file_uploads

设置是否允许通过http上传文件,默认值是on

?

upload_tmp_dir

设置通过http上传文件时的临时目录,如果为空,则使用系的临时目录

?

upload_max_filesize

设置允许上传文件的大小,如50M

?

post_max_size

设置post数据允许的最大容量。要上传大文件,该值必须答应upload_max_filesize的设置

?

文章在独立博客地址:http://www.fsech.com/code/php/3.php

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