hi all
what i want to do is that when im running a shell script, if there is error(like permition denied) i wil be able to catch it as string
my code is
$cmd= `sh /blabla/bla.sh`
print_r($cmd);
if the script is ruuning with no errors, im able to print what the script does, but i want to save the errors msg also(so i can send them to somewhere else).
is there a way to do this?
10x