How to Upload Large Files Using PHP
- 1). Locate and open your PHP file (PHP.ini) where the IIS and PHP are installed on your server. When you open the PHP configuration file, you have to change the maximum file size.
- 2). Edit the MB value of: "php_value upload_max_filesize" from "2M" to the upload size you want to use. If you want to increase the file size limit to "4M" for example, then you will enter: "php_value upload_max_filesize 4M."
- 3). Change the MB value of: "php_value post_max_size" so that it will match the file size of: "php_value upload_max_filesize."
- 4). Increase the "time-out limit" to prevent the computer from timing-out while the file is begin uploading. The two values that need to be changed are: "php_value max_input_time" and "php_value max_execution_time." If you want to change the "time-out limit" to four minutes, then the value of the "php_value max_input_time" should be: "php_value max_input_time 240" and "php_value max_execution_time 240."