Home  >  Article  >  Backend Development  >  Configuration method to break through the PHP upload file size limit

Configuration method to break through the PHP upload file size limit

WBOY
WBOYOriginal
2016-07-25 08:58:361060browse
  1. file_uploads = On ;Turn on the file upload option
  2. upload_max_filesize = 500M ;Upload file limit
Copy code

Secondly, if you want to upload a very large file, in addition to modifying the above two items, you must also Increase the upper limit of server cache and increase the maximum script execution time. 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