Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何编写一个 PHP 函数来检查 Apache 的模式是否处于安全模式?
<?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没有安全模式,你是说PHP吗?
$safemode = ini_get('safe_mode');