dongyiluan1718 2010-03-17 10:06
浏览 18
已采纳

如何编写一个PHP函数来检查Apache的模式是否处于安全模式?

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

  • 写回答

2条回答 默认 最新

  • dpnzf48660 2010-03-17 10:10
    关注
    <?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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?