PHP upload file size limit modification

WBOY
Release: 2016-07-25 08:54:50
Original
876 people have browsed it
  1. file_uploads = On ; Turn on the file upload option
  2. upload_max_filesize = 500M ; Upload file limit
Copy code

If you want to upload a larger file, the above two are not enough, you also need to set the server cache limit Increase the value to increase the maximum execution time of the script.

As follows:

  1. post_max_size = 500M; post upper limit
  2. max_execution_time = 1800; ; Maximum amount of memory a script may consume (128MB)Memory limit
Copy code
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