Home > Backend Development > PHP Tutorial > PHP upload large file setting method_PHP tutorial

PHP upload large file setting method_PHP tutorial

WBOY
Release: 2016-07-20 11:07:53
Original
869 people have browsed it

php tutorial upload large file setting method
Open php.ini, first find
;;;;;;;;;;;;;;;;;
; file uploads ;
; ;;;;;;;;;;;;;;;;
area has the following parameters that affect file upload:

file_uploads = on ; Switch whether to allow file uploading via http. The default is on, which means it is turned on

upload_tmp_dir ; Files are uploaded to the place where temporary files are stored on the server. If not specified, the system default temporary folder will be used

upload_max_filesize = 8m ; Wangwen Business , that is, the maximum allowed upload file size. Default is 2m


in
;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;
area, there is another item:

post_max_size = 8m; refers to the maximum value that can be received by posting to php through the form, including all values ​​in the form. The default is 8m

Generally, after setting the above four parameters, uploading files of
But if you want to upload a large file >8m, it will definitely work if you only set the above four items. Unless your network really has an upload speed of 100m/s, you still have to care about the following parameters:


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

; resource limits ;

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

max_execution_time = 600 ;Maximum time value (seconds) for each php page to run, default 30 seconds

max_input_time = 600 ; The maximum time required for each php page to receive data, the default is 60 seconds

memory_limit = 8m ; The maximum memory consumed by each php page, the default is 8m


http://www.bkjia.com/PHPjc/444912.html

truehttp: //www.bkjia.com/PHPjc/444912.htmlTechArticlephp tutorial upload large file setting method Open php.ini, first find;;;;;;;;;; ;;;;;; ; file uploads ; ;;;;;;;;;;;;;;;; area, the following parameters that affect file uploads: file_upl...
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