Tuesday, 27 March 2018

php - How to set upload_max_filesize in .htaccess?



I have try to put theese 2 lines




php_value post_max_size 30M
php_value upload_max_filesize 30M


in my root .htaccess file but that brings me "internal server error" message ...
php5 is running on the server
I don't have access to php.ini so i think htaccess is my only chance.
Can you tell me where is the mistake?
Thanks in advance


Answer



php_value upload_max_filesize 30M is correct.



You will have to contact your hosters -- some don't allow you to change values in php.ini



No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...