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...
精彩评论