Home > Article > Backend Development > PHP upload large file setting method_PHP tutorial
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
;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;
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