This article introduces the content of the PHP upload large file Method (modified Apache configuration file), has a certain reference value, now share to everyone, the need for friends can refer to
Open the php.ini configuration file
Parameter setting description
File_uploads on whether to allow the switch to upload files over HTTP. The default is on, which is open
upload_tmp_dir– files are uploaded to the server where temporary files are stored, and if not specified, the system default Temp folder is used
Upload_max_filesize 8m business, that is, the maximum size allowed to upload files. Default is 2M
Post_max_size 8m refers to the maximum value that can be received by a form post to PHP, including all values in the form. Default is 8M
Generally, set up the above four parameters, in the network normal situation, upload <=8m files is not a problem
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 has a 100m/s upload speed, you still have to set the following parameters.
Max_execution_time 600 Maximum time value per php page (seconds), default 30 seconds
Max_input_time 600 maximum time per PHP page to receive data, default 60 seconds
Memory_limit 8m max memory eaten per PHP page, default 8M