Configuring PHP to Support Large File Uploads
Uploading large files (e.g., ~100 MB) using PHP requires adjustments to the PHP configuration file (php.ini). Here are the key changes you need to make:
1. PHP Configuration
2. Apache Configuration (if applicable)
Configuration Example:
; php.ini upload_max_filesize = 100M post_max_size = 110M max_input_time = 600 ; .htaccess LimitRequestBody 110M
Note: Remember to restart your web server (e.g., Apache) after making these changes to ensure they take effect.
The above is the detailed content of How to Configure PHP for Large File Uploads?. For more information, please follow other related articles on the PHP Chinese website!