$stat=system('/bin/sh /root/scripts/start.sh', $ret);
//will use /bin/sh to execute the script
echo $ret; //echoes return status of command (on 'Nix, 0 for success)
echo $stat; // echoes output of 'start.sh', if any
$stat=exec('/bin/sh /root/scripts/start.sh', $outarray, $ret);
// /bin/sh runs the script
echo $stat; // echoes last line of start.sh output
echo $ret; // return status of command
while ($x<count($outarray)) {
echo $outarray[$x]."\n";
$x++;
} // will echo each line of start.sh's output
$resource=passthru('/bin/sh start.sh', $ret);
// $ret is return value of command
// $resource is a raw binary stream, say, an image or audio stream....
$stat=shell_exec('ping -t2 yahoo.com');
// note: it knows what the shell knows, i.e.
// it knows where 'ping' is ...
// $stat will be the complete output
HTH,