PHP Upload Large file setup method,
Open PHP.ini, first find
;;;;;;;;;;;;;;;;
; File uploads;
;;;;;;;;;;;;;;;;
Area, there are several parameters that affect file uploads:
File_uploads = on;//whether to allow the switch to upload files over HTTP. The default is on is open upload_tmp_dir ;//File upload to the server where temporary files are stored, if not specified will be used the system default temporary folder Upload_max_filesize = 8m ;/ Wang Wen Business, that is, the maximum size allowed to upload files. Default is 2m
In
;;;;;;;;;;;;;;;;;
; Data handling;
;;;;;;;;;;;;;;;;;
Area, there is one more:
Post_max_size = 8m;//refers to the maximum value that can be received by the form Post to PHP, including all values in the form. Default is 8m
Generally, after setting the above four parameters, uploading <=8m files is not a problem, in the network normal situation.
However, if you want to upload a large volume of >8m files, only set the above four items will certainly be able to pass. Unless your network really 100m/s upload high speed, otherwise you have to care about the following parameters:
;;;;;;;;;;;;;;;;;;;
; Resource limits;
;;;;;;;;;;;;;;;;;;;
Max_execution_time = 600;//The Maximum time value (in 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, default 60 seconds memory _limit = 8m;//MAX memory eaten per PHP page, default 8m
Articles you may be interested in:
- apache+php upload large files to upload 100M as an example
- PHP fastcgi mode upload large files (about 300 k) error
- Reasons and countermeasures of failure of uploading large files in PHP
http://www.bkjia.com/PHPjc/1120927.html www.bkjia.com true http://www.bkjia.com/PHPjc/1120927.html techarticle PHP Upload Large file setup method, open php.ini, first find out;;;;;;;;;;;;;;;;;;;;;; a. The following parameters for uploading files: file_upload...< /c11>