PHP File Upload Configuration
apache+php environment upload large files related configuration options
Avoid secondary searches and do no work.
First, you need to configure the following parameters in php.ini based on the maximum file size value (such as 32M) that is allowed to be uploaded:
File_uploads = on; Whether to allow HTTP file uploads
Upload_max_filesize = 32M; Maximum allowed size for uploaded files
Post_max_size = 32M; Maximum size of POST data that PHP would accept
Among them, the actual meaning of each parameter is obvious, refer to the above php.ini in the relevant explanatory text can be.
In addition, the following parameters may need to be set in practice, taking into account the impact of network transmission speed:
Max_execution_time = 30000; Maximum execution time of each script, in seconds
Max_input_time = 600; Maximum amount of time each script may spend parsing request data
Memory_limit = 1024M; Maximum amount of memory a script may consume
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.