How to set upload

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


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


If you are getting 500 - Internal server error that means you don't have permission to set these values by .htaccess . You have to contact your web server providers and ask to set AllowOverride Options for your host or to put these lines in their virtual host configuration file.


php_value memory_limit 30M
php_value post_max_size 100M
php_value upload_max_filesize 30M

Use all 3 in .htaccess after everything at last line. php_value post_max_size must be more than than the remaining two.

链接地址: http://www.djcxy.com/p/26550.html

上一篇: 如果php.ini / .htaccess不可编辑,如何删除魔术引号?

下一篇: 如何设置上传