无法获取月球页面中设置的 max_post_size php 变量
我需要增加 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的共享托管提供商很可能已禁止在本地更改这些值 - 显而易见的原因是,否则每个人都可以随意规避限制,从而使它们毫无用处。
(删除了
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.
我在 http://wiki.lunarpages.com/Increase_php.ini_Upload_Limit 找到了答案。
谢谢
I found the answer at http://wiki.lunarpages.com/Increase_php.ini_Upload_Limit.
Thanks