How to Specify File Size Limit and Max Execution Time Limit for PHP using htaccess file

Home / Website Design and Management / htaccess file / How to Specify File Size Limit and Max Execution Time Limit for PHP using htaccess file
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200

In the above .htaccess file, uploading capability is increased by the four parameter first one is maximum file size for uploading, second one is maximum size of the post data , third one is maximum time in seconds a script is allowed to run before it is terminated by the parser and last one is maximum time in seconds a script is allowed to parse input data such as like file uploads, POST and GET data.

After you upload your above codes in your htaccess file. You can create a phpinfo file, and you will find the max upload file size and max execution time is changed.

Leave a Reply

Your email address will not be published.