Home >Backend Development >PHP Tutorial >PHP upload file size limit modification

PHP upload file size limit modification

WBOY
WBOYOriginal
2016-07-25 08:54:50906browse
  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
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