Php file downloading configuration

Source: Internet
Author: User
PHP file upload configuration related configuration options for uploading large files in the Apache + PHP environment to avoid useless secondary retrieval. First, the php. configure the following parameters in ini: file_uploadsOn & nbsp; & nbsp; php file upload configuration
Configuration options for uploading large files in the Apache + PHP environment
Avoid useless secondary retrieval.
First, configure the following parameters in php. ini based on the maximum file size (such as 32 M) that can be uploaded:
File_uploads = On; Whether to allow HTTP file uploads
Upload_max_filesize = 32 M; Maximum allowed size for uploaded files
Post_max_size = 32 M; Maximum size of POST data that PHP will accept
The actual meaning of each parameter is obvious. refer to the instructions in php. ini above.
In addition, considering the impact of network transmission speed, you may need to set the following parameters:
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 = 1024 M; Maximum amount of memory a script may consume

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.