开发者

How to pass the SAFE MODE Restriction in PHP?

开发者 https://www.devze.com 2023-02-13 08:20 出处:网络
Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 1191 is not

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 07开发者_运维问答77.

How can I fix this bug?

If you need more information to solve, ask me.


in php.ini:

safe_mode = Off
open_basedir = 


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消