Modify PHP Upload file size, response time
1. Modify PHP.ini
1, post_max_size refers to the form post to PHP can receive the maximum value, including all the values in the form, the default is 8M (to 150M), see you need to change.
2, first confirm file_uploads = on whether to allow the upload of files via HTTP switch, the default is on is open.
Upload_tmp_dir upload the file cache directory via HTTP, check whether it can be written;
Finding upload_max_filesize is the maximum size allowed for uploading files. The default is 2M (change to 100M).
3, if you want to upload >8m files, then only set the above four items can not be certain. It is best to set the following parameters as well:
Max_execution_time the maximum time value (in seconds) to run per PHP page, the default is 30 seconds (change to 0, no limit).
Max_input_time the maximum time required for each PHP page to receive data, the default is 60 seconds (change to 0, no limit).
Memory_limit the maximum memory eaten per PHP page, the default 8M (128M, unlimited).
Time zone
The first approach: set in php.ini: Date.timezone=asia/shanghai (note not to add single or double quotes)
The second approach: Ini_set in the program (' Date.timezone ', ' Asia/shanghai ');
Modify PHP Upload file size, response time, time zone and other settings