If i am trying to execute this command from my controller :
$output = shell_exec('asterisk -rx "core show channels concise"');
echo "<pre>$output</pre>";
Nothing appears only blank page is showing. but when i run
exec('ls -la', $outputArray);
print_r($outputArray);
Output is printed fine.
I tried other methods which are mentioned here. what changes i have to make in my php.ini to run shell commands.How can I find out what is going wrong when I see no error message right away?