开发者

php safe mode in server

If this returns true, does it mean safe mode is on or off?

if( !ini_开发者_StackOverflow中文版get('safe_mode') ){
    echo 'TRUE';
}  else {
    echo 'FALSE';
}


It echoes FALSE if safe mode is on, however, safe mode is deprecated as of PHP 5.3


Echoes true if ini_get('safe_mode') is false so this piece of code echoes the opposite of the safe mode state.


A bit off topic, but try var_dump(ini_get('safe_mode')) next time...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜