From abb040f9efde24ab0ff77a31668b233158d7dc0c Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 25 Jan 2021 00:55:13 +0100 Subject: [PATCH] cannot run shell_exec ?? --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index fc1610b..1698f23 100644 --- a/index.php +++ b/index.php @@ -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)) {