btw, this should work to check for safe mode:
if( ini_get('safe_mode') ){
// safe mode
}else{
// unsafe mode
}
but safe mode is removed in php 6 because it's largely useless. isps who provide php safe mode usually also provide perl and other utilities that do not have a safe mode so if they can't get to the necessary functions to hack the system via php, they'll use perl or another similar utility that does nto have a safe mode. the protections afforded by safe mode should be provided by apache instead...
|