Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将我的共享虚拟主机帐户上的 upload_max_filesize 更改为大于 2M 的大小。
由于我无权访问 php.ini,而且显然您不能使用 ini_set 来更改 upload_max_filesize,我不知道该怎么办。也许涉及.htaccess的东西?
谢谢!
你联系过托管公司吗?他们可能愿意更改尺寸和/或他们可能会告诉您您是否也可以。他们可能已经为 max_file_size 配置设置禁用了 .htaccess 和 ini_set() ,在这种情况下,无论你做什么,它都会被忽略。
一些主机允许您自己进行 php 的自定义编译,一些允许您在联系支持人员时请求更改 php.ini,一些不让您做任何事情。
如果您的托管公司拒绝让您以任何方式修改您的 php 设置,我个人会考虑其他托管公司...