Must have been in a trance or something while writing this...
My apologies to Vincent and fellow Phpian's
code should have been like this:
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