I'm working on shell_exec and it doesn't run in browser but works in terminal. Here's my code:
<?php
echo 1;
shell_exec ("gpg --output /home/datafeeding/testing/sampledick.xls.gpg --encrypt --recipient rtalplacido@yahoo.com /opt/jasperserver-3.5.0/apache-tomcat/webapps/JavaBridge/reports/sampledick.xls");
echo 2;
echo "<br>";
?>
It echo 2
, it just passes through the shell exec