how to code a PHP function who will check whether the mode of Apache is on safemode or not ?
views:
17answers:
2
+4
A:
<?php
// Check for safe mode
if( ini_get('safe_mode') ){
// Do it the safe mode way
}else{
// Do it the regular way
}
?>
Silver Light
2010-03-17 10:10:34
+2
A:
Apache doesn't have a safemode, Do you mean PHP?
$safemode = ini_get('safe_mode');
JonnyLitt
2010-03-17 10:12:29