Home  >  Article  >  Backend Development  >  How to modify the php upload file size limit

How to modify the php upload file size limit

王林
王林Original
2020-04-25 13:56:232221browse

How to modify the php upload file size limit

First open the php.ini configuration file

Then make the following modifications

1, upload_max_filesize = 8m;

to allow uploading The maximum value of the file size

post_max_size = 8m;

refers to the maximum value that can be received by PHP through the form POST, including all values ​​in the form. The default is 8M

How to modify the php upload file size limit

2, max_execution_time = 600;

The maximum time value (seconds) for each PHP page to run, the default is 30 seconds

max_input_time = 600; The maximum time required for each PHP page to receive data, the default is 60 seconds

How to modify the php upload file size limit

3, memory_limit = 8m;

Each The maximum memory occupied by the PHP page, the default is 8M

How to modify the php upload file size limit

Just save the file at the end.

For more related articles and tutorials, please visit php Chinese website.

The above is the detailed content of How to modify the php upload file size limit. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn