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