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

How to modify the php upload file size limit

王林
Release: 2023-02-28 19:46:01
Original
2256 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template