Home  >  Article  >  Backend Development  >  How to set upload file size limit in php

How to set upload file size limit in php

青灯夜游
青灯夜游Original
2021-03-25 18:13:085592browse

Method: First open the "php.ini" file; then increase the values ​​of the "upload_max_filesize", "post_max_size", "max_execution_time", "max_input_time", and "memory_limit" items.

How to set upload file size limit in php

The operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer

php sets upload file size limit

Steps:

1. Left-click wamp, select php, and select php.ini
How to set upload file size limit in php

in the pop-up window

2. After opening the file, modify the following contents:

  • Set the maximum file upload limit (the size of the value can be modified according to needs)
    How to set upload file size limit in php
    How to set upload file size limit in php
    How to set upload file size limit in php
  • Considering the speed of network transmission, modify some parameters here
    How to set upload file size limit in php
    How to set upload file size limit in php
    How to set upload file size limit in php
##Recommended learning: "

PHP Video Tutorial"

The above is the detailed content of How to set upload file size limit in php. 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