PHP file size limit _ PHP Tutorial

Source: Internet
Author: User
PHP file size limit. Configure php. for INI files (for files smaller than MB), find the following options and modify-file_uploadsOn; enable the file upload option upload_max_filesize500M; configure php on the Upload file. ini file (for example, upload a file smaller than MB)
Search for the following options and modify them.
File_uploads = On; enable the file upload option
Upload_max_filesize = 500 M; maximum number of uploaded files


If you want to upload a large file, the above two files are not enough. you must increase the server cache limit and extend the script execution time.
Post_max_size = 500 M; maximum post size
Max_execution_time = 1800; Maximum execution time of each script; Maximum execution time of in seconds script
Max_input_time = 1800; Maximum amount of time each script may spend parsing request data
Memory_limit = 128 M; Maximum amount of memory a script may consume (128 MB) memory limit

Upload (for example, upload a file smaller than 500 MB) to find the following options and modify-file_uploads = On; open the file upload option upload_max_filesize = M; upload the file...

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.