Increase PHP’s File Upload Limit Using .htaccess file

How do we increase upload file limit through .htaccess file. Here I am giving you quick trick.

Create .htaccess file(If you have already .htaccess file on the server then no need to create it just update that file) using your favorite text editor like notepad++ and put below code on that file :

php_value memory_limit 256M
php_value upload_max_filesize 50M
php_value post_max_size 50M

If you want to also increase the php script execution time then put this code in the .htaccess file

php_value max_execution_time 18000

The values 256M,50M and 18000 you can change as per your requirement.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *