hi all i am trying to enable safe mode so i can enable safe mode for a script i am developing but its not working correclty what i am doing wrong this is my code.
if (ini_set('safe_mode','1'))
{
echo "<font color=red>SAFE_MODE ONline</font>";
}
else
{
echo "<font color=green>SAFE_MODE OFF still</font>";
}
you simply can’t do it from inside of an php-script.
Why not? Because the ini_set command won’t work for “safe-mode” toggling, as safe_mode is a PHP_INI_SYSTEM (system wide setting) and can only be change via php.ini or .htaccess.