The DocumentRoot is /var/www/html And my web application is /var/www/html/webapp I tried to execute a program from the webapp directory using shell_exec() but seems like it did not process. Is there anythiing I need to change in php.ini?
try using other cmds like exec, system or passthru
eg:
$output = exec("myprog 2>&1",$outarray); echo $output . "\n"; for ($i=0; $i < sizeof($outarray); $i++) { echo $outarray[$i] . "\n"; }