我正在研究 shell_exec,它不在浏览器中运行,但在终端中运行。这是我的代码:
<?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>";
?>
它echo 2
,它只是通过 shell exec