开发者

how to code a PHP function who will check whether the mode of Apache is on safemode or not?

how to code a PHP function who will check whether the m开发者_JAVA技巧ode of Apache is on safemode or not ?


<?php 
// Check for safe mode
if( ini_get('safe_mode') ){
    // Do it the safe mode way
}else{
    // Do it the regular way
}

?>

http://www.php.net/manual/en/features.safe-mode.php#45263


Apache doesn't have a safemode, Do you mean PHP?

$safemode = ini_get('safe_mode');
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜