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

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

问题描述

我已经尝试把这些 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

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

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