Hi Friends,
It\'s something about the safe mode behaviour of php.
We are running our php4 with \"safe_mode=on\" in php.ini.
According to php documentation we can\'t have components in the path to the executable when using functions like exec() and
system().
e.g., I can run this in php4 with safe_mode=on.
#######################################
$lines=array();
$errco=0;
$cmd1=\"ls\";
$result = exec($cmd1,$lines,$errco);
?>
#######################################
but when I write the below script it doesn\'t work:
#######################################
$lines=array();
$errco=0;
$cmd1=\"ls -lrt * 2>&1\";
$result = exec($cmd1,$lines,$errco);
?>
#######################################
My question is, is there a way to circumvent this problem in php4 keeping safe_mode=on.
Any help would be appreciated.
Thanks,
\Rohit