donnie
2003-09-12, 02:43 AM
I have Linux RedHat 7.3 server. Previously I have enabled the Safe mode On. But now
I have switch the safe_mode off and check it by running the following PHP code:
<?
if (get_cfg_var("safe_mode") == 1)
{
echo "safe mode is on";
}
else
{
echo "safe mode is off";
}
?>
It's returning 'safe mode is off'. But when I run the mkdir() command to make the directory from php it will give me an Error: 'Permission denied'. The code which I executed is:
<? $madedir = mkdir("abc" , 0777) == TRUE ? 1 : 0;
if($madedir == 0)
{
echo "Dir Not Created";
}
else
{
echo "Dir Created";
}
?>
It's also giving an Error: 'Permission denied'.
I have check it but it's not running any Safe Mode Disabled Commands. Please tell me, if you have an idea what's the problem.
I have switch the safe_mode off and check it by running the following PHP code:
<?
if (get_cfg_var("safe_mode") == 1)
{
echo "safe mode is on";
}
else
{
echo "safe mode is off";
}
?>
It's returning 'safe mode is off'. But when I run the mkdir() command to make the directory from php it will give me an Error: 'Permission denied'. The code which I executed is:
<? $madedir = mkdir("abc" , 0777) == TRUE ? 1 : 0;
if($madedir == 0)
{
echo "Dir Not Created";
}
else
{
echo "Dir Created";
}
?>
It's also giving an Error: 'Permission denied'.
I have check it but it's not running any Safe Mode Disabled Commands. Please tell me, if you have an idea what's the problem.