Settings required for uploading large files in PHP :. Needless to say, you have to find the PHP configuration file php. ini troubles: open php. ini, first find; FileUploads ;;;;;;;;;;;;;;;;; area, there are several of the following, not to mention, have to find the PHP configuration file php. ini troubles :)
Open php. ini, first find
;;;;;;;;;;;;;;;;
; File Uploads;
;;;;;;;;;;;;;;;;
Region, which has the following parameters that affect file upload:
File_uploads = on; whether to allow file upload over HTTP. ON is enabled by default.
Upload_tmp_dir; upload the file to the place where the temporary file is stored on the server. if it is not specified, the default temporary folder will be used.
Upload_max_filesize = 8 m; Wangwen business, that is, the maximum file size allowed to be uploaded. The default value is 2 MB.
In
;;;;;;;;;;;;;;;;;
; Data Handling;
;;;;;;;;;;;;;;;;;
Region:
Post_max_size = 8 m; the maximum value that can be received by posting a form to PHP, including all values in the form. The default value is 8 MB.
Generally, after the preceding four parameters are set, uploading the file <= 8 m is not a problem, but the network is normal.
However, if you want to upload a large file larger than 8 MB, you can only set the above four items. Unless your network has a high upload speed of 100 Mbit/S, you have to pay attention to the following parameters:
;;;;;;;;;;;;;;;;;;;
; Resource Limits;
;;;;;;;;;;;;;;;;;;;
Max_execution_time = 600; maximum time (in seconds) for running each PHP page. the default value is 30 seconds.
Max_input_time = 600; maximum time required for receiving data on each PHP page. the default value is 60 seconds.
Memory_limit = 8 m; maximum memory consumed by each PHP page. the default value is 8 M.
After modifying the preceding parameters, you can upload a large volume of files as permitted by the network.
Now, you can try it. Click a file with a size of 200 MB to upload it.
When you listen to songs, want to MM, or go back to the toilet, the program will tell you that the upload is successful ~
The file uploaded to the local machine is successfully tested.
Luck ~~
Enabled) open php. ini, first find; File Uploads ;;;;;;;;;;;;;;;;; region, which has the following impact on file upload...