如何在PHP中传递安全模式限制?(How to pass the SAFE MODE Restriction in PHP?)

编程入门 行业动态 更新时间:2024-10-08 04:26:47
如何在PHP中传递安全模式限制?(How to pass the SAFE MODE Restriction in PHP?)

警告:fopen()[function.fopen]:安全模式限制有效。 其uid为1191的脚本不允许访问/ home / yasimtr1 / domains中uid 101所拥有的/home/yasimtr1/domains/yasisyazilim.com.tr/public_html/kamuoyutv/data/videos/archive/2011/2/26第446行/yasisyazilim.com.tr/public_html/kamuoyutv/index/phplibrary/action.php

文件夹具有权限0777。

我该如何修复这个bug?

如果您需要更多信息来解决,请问我。

Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 1191 is not allowed to access /home/yasimtr1/domains/yasisyazilim.com.tr/public_html/kamuoyutv/data/videos/archive/2011/2/26 owned by uid 101 in /home/yasimtr1/domains/yasisyazilim.com.tr/public_html/kamuoyutv/index/phplibrary/action.php on line 446

the folders have the permission 0777.

How can I fix this bug?

If you need more information to solve, ask me.

最满意答案

由于这是在一些webhosting提供程序上,您将无法直接访问php.ini文件。 但是,有几种方法可以尝试启用它。 出于安全原因,大多数提供商不允许您启用它。

如果您的主机有在线控制面板,请检查他们是否有关闭安全模式的选项。 虽然大多数没有,但值得一试。

某些提供程序还允许您使用.htaccess文件将其关闭。 如果是这样,请将以下行添加到htaccess文件中:

php_flag safe_mode off

如果这两个选项失败,您有一个最终选项:尝试询问您的主机提供商。 他们可能会让你大吃一惊并为你关掉它。

Since this is on some webhosting provider, you won't have direct access to the php.ini file. However, there are several methods that you can try to enable it. Most providers don't allow you to enable it though, for security reasons.

If your host has an online control panel, check to see if they have an option to turn off Safe Mode. Although most don't, it may be worth a try.

Some providers also allow you to turn it off with a .htaccess file. If so, add the following line to your htaccess file:

php_flag safe_mode off

If those two options fail, you have one final option: Try asking your host provider. They might surprise you and turn it off for you.

更多推荐

本文发布于:2023-04-29 09:04:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1335578.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模式   如何在   PHP   pass   MODE

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!