[Turn] to modify php.ini upload file size limit

Open php.ini, first find
file_uploads = on; switch whether to allow HTTP file upload. The default is ON that is open
upload_tmp_dir; files uploaded to the local store temporary files on the server, if not specified will use the system default temporary folder
upload_max_filesize = 8m; Wang Wen business, which allows a maximum upload file size. The default is 2M
post_max_size = 8M; refers to the maximum that can be received by the PHP to form POST, including all values in the form. The default is 8M

memory_limit = 128m; each PHP pages eaten maximum memory, 8M default
after general, set the four parameters, upload <= 8M file is not a problem under normal circumstances network.
But if you want to upload> 8M bulky files, settings, only these four also will be able to do the same.

The following parameters further configured
max_execution_time = 600; maximum time value (in seconds) for each run PHP pages, the default 30 seconds
max_input_time = 600; each PHP page maximum time required for receiving the data, the default 60 seconds
memory_limit = 8m; each PHP eaten maximum memory pages, the default 8M
after the above parameter modification, normally allowed for the network, a large volume can upload files
the max_execution_time = 600
max_input_time directives in = 600
the memory_limit = 32M
the file_uploads = oN
the upload_tmp_dir = / tmp
the upload_max_filesize 32M =
post_max_size = 32M

Open php.ini, first find
file_uploads = on; switch whether to allow HTTP file upload. The default is ON that is open
upload_tmp_dir; files uploaded to the local store temporary files on the server, if not specified will use the system default temporary folder
upload_max_filesize = 8m; Wang Wen business, which allows a maximum upload file size. The default is 2M
post_max_size = 8M; refers to the maximum that can be received by the PHP to form POST, including all values in the form. The default is 8M

memory_limit = 128m; each PHP pages eaten maximum memory, 8M default
after general, set the four parameters, upload <= 8M file is not a problem under normal circumstances network.
But if you want to upload> 8M bulky files, settings, only these four also will be able to do the same.

The following parameters further configured
max_execution_time = 600; maximum time value (in seconds) for each run PHP pages, the default 30 seconds
max_input_time = 600; each PHP page maximum time required for receiving the data, the default 60 seconds
memory_limit = 8m; each PHP eaten maximum memory pages, the default 8M
after the above parameter modification, normally allowed for the network, a large volume can upload files
the max_execution_time = 600
max_input_time directives in = 600
the memory_limit = 32M
the file_uploads = oN
the upload_tmp_dir = / tmp
the upload_max_filesize 32M =
post_max_size = 32M

Guess you like

Origin www.cnblogs.com/GXQi/p/11236175.html