如何设置的upload_max_filesize在.htaccess? [英] How to set upload_max_filesize in .htaccess?

查看:694
本文介绍了如何设置的upload_max_filesize在.htaccess?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图把theese 2行

I have try to put theese 2 lines

php_value post_max_size 30M
php_value upload_max_filesize 30M

在我的根.htaccess文件,但由此想到内部服务器错误消息...
PHP5是在服务器上运行
我没有机会为php.ini,所以我觉得htaccess是我唯一的机会。
你能告诉我哪里是错?
在此先感谢

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 是正确的。

您必须联系您的主机服务商 - 某些不允许你改变在php.ini值

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

这篇关于如何设置的upload_max_filesize在.htaccess?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆