无法获取月球页面中设置的 max_post_size php 变量

发布于 2024-08-27 11:35:33 字数 359 浏览 9 评论 0原文

我需要增加 php 的最大帖子大小和上传大小才能使用 drupal 的音频模块。我读到这必须在 php.ini 中设置。但是我认为我无法访问月球页面中的该文件。我还读到它也可以在 .htaccess 中设置。然而它并没有改变任何东西。

我尝试过:

php_value post_max_size "40M"
php_value upload_max_filesize "40M"

我也尝试过:

php_value post_max_size 40M
php_value upload_max_filesize 40M

在本地主机上它说重新启动网络服务器。但这在共享主机上是不可能的。这可能是问题所在吗?

I need to increase max post size and upload size for php to use the audio module of drupal. I read this has to be set in php.ini. However I don't think I have access to that file in lunar pages. I also read it can also be set in .htaccess. However it doesn't change anything.

I tried:

php_value post_max_size "40M"
php_value upload_max_filesize "40M"

i also tried:

php_value post_max_size 40M
php_value upload_max_filesize 40M

On localhost it says restart webserver. But this is not possible on shared host. Could that be the problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

南汐寒笙箫 2024-09-03 11:35:33

您的共享托管提供商很可能已禁止在本地更改这些值 - 显而易见的原因是,否则每个人都可以随意规避限制,从而使它们毫无用处。

(删除了 ini_set 示例,正如 @Pascal 所说,这些限制是在执行脚本之前强制执行的。)

如果您想更改此设置,您可能必须与您的托管提供商联系。

It's likely that your shared hosting provider has disabled changing those values locally - for the obvious reason that otherwise, everybody could circumvent the limits as they please, rendering them useless.

(Removed ini_set example, as @Pascal says, those limits are enforced before the script is executed.)

You would probably have to talk to your hosting provider if you want to change this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文