Configuration method to break through the PHP upload file size limit

WBOY
Release: 2016-07-25 08:58:36
Original
995 people have browsed it
  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
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!