簡體   English   中英

如何編寫PHP函數的代碼,該函數將檢查Apache的模式是否在安全模式下?

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

如何編寫PHP函數的代碼,該函數將檢查Apache的模式是否在safemode上?

<?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/zh/features.safe-mode.php#45263

Apache沒有安全模式,您是說PHP嗎?

$safemode = ini_get('safe_mode');

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM