cannot run shell_exec ??

This commit is contained in:
qo-op 2021-01-25 00:55:13 +01:00
parent 5c93d65994
commit abb040f9ef
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@ $mytime = new Datetime("now");
$timestamp = $mytime->format('U');
// CREATE 6 G1BILLETS in /tmp/g1billet/$timestamp
$page = shell_exec(dirname(__FILE__)."/G1BILLETS.sh '".$_REQUEST['montant']."' '".$timestamp."' >> /tmp/g1billet.log");
$output = shell_exec('ls /tmp/ 2>&1')
//$page = shell_exec(dirname(__FILE__)."/G1BILLETS.sh '".$_REQUEST['montant']."' '".$timestamp."' >> /tmp/g1billet.log");
$attachment_location = "/tmp/g1billet/".$timestamp.".pdf";
if (file_exists($attachment_location)) {