Increasing Upload Size/Time in PHP Applications
1) Create a .htaccess file in the root folder of the web server.
2) Put the following code in side the .htaccess file and save it.
php_value upload_max_filesize 50M
php_value post_max_size 50M
php_value max_execution_time 200
php_value max_input_time 200
(The exact time limit - in seconds - as well as the new upload limit
can be modified from this example, though, most should find the above
more than enough).
3) Confirm change via phpinfo() function.
Related Articles
Increasing Upload Size/Time in PHP Applications
1) Create a .htaccess file in the root folder of the web server. 2) Put the following code in side the .htaccess file and save it. php_value upload_max_filesize 50M php_value post_max_size 50M php_value max_execution_time 200 php_value max_input_time ...
err_too_many_redirects on WordPress - Php
How to Solve Too Many Redirects Error in WordPress? The most common misconfiguration that we have come across repeatedly is when a user has incorrect URL in WordPress Address URL or Site Address URL settings. For example, lets assume that your site’s ...
PHP
Php Sort PHP processes by user: Show PHP Errors: put this code at top of php page you want to test (usually index.php): error_reporting(E_ALL); ini_set('display_errors', 1);
Changing PHP Memory Limit via .htaccess
If you get an error such as: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 317560 bytes) On your PHP scripts, you can fix it with a line in your .htaccess reading: php_value memory_limit 12M Simply modify the 12M to ...
How to Change Timezone for PHP
You can change the timezone to cater to your specific time zone location. For example, if the server is located in Central Standard Time, but you live and do business in New York and require that orders are coming in from your website be input as ...