PHP upload file size limit _php tips

Source: Internet
Author: User
Configure PHP.ini files (for example, files of the size of 500M below)
Look for the following options and modify the->
File_uploads = on; open File upload option
upload_max_filesize = 500M; upload file upper limit


If you want to upload a larger file, only the above two is not enough, the server cache must be the upper limit, the script maximum execution time is longer
Post_max_size = 500M;p ost Upper limit
max_execution_time = 1800; Maximum execution time for each script, in seconds script maximum execution
max_input_time = 1800; Maximum amount of time each script may spend parsing request data
Memory_limit = 128M; Maximum amount of memory a script may consume (128MB) memory cap

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.