Home > Backend Development > PHP Tutorial > PHP 下传文件的 最大限制,求解!

PHP 下传文件的 最大限制,求解!

WBOY
Release: 2016-06-13 13:24:04
Original
892 people have browsed it

PHP 上传文件的 最大限制,求解!!!
请问一下 ,我在 php的 配置中调整了 上传文件最大限制!~!!! 如下~~~

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir ="E:\appserv\www\tem"

; Maximum allowed size for uploaded files.
upload_max_filesize = 100M

;;;;;;;;;;;;;;;;;;

可是 一直只能上传 2M 一下的文件!! 这是为什么??

提醒, 我把 100M 改为了 100000000 与 100M ,
并且每次修改后,我都重新启动服务器了, 可是为什么 就是 不能上传 大文件???

求解!!!!

------解决方案--------------------
报错了没? post_max_size 也改大点。
------解决方案--------------------
在php.ini里面查看如下行:
upload_max_filesize = 100M post_max_size = 100M memory_limit = 40M
把这个2个改成一样,试试看~!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template