From 85533cf64ea102ede9643e50f77d04f609ee4e7e Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 25 Jan 2021 01:01:13 +0100 Subject: [PATCH] running shell_exec please --- index.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/index.php b/index.php index 9bcc741..4dce1eb 100644 --- a/index.php +++ b/index.php @@ -1,14 +1,9 @@ format('U'); // CREATE 6 G1BILLETS in /tmp/g1billet/$timestamp -$output = shell_exec('ls /tmp/ 2>&1'); -echo $output; -//$page = shell_exec(dirname(__FILE__)."/G1BILLETS.sh '".$_REQUEST['montant']."' '".$timestamp."' >> /tmp/g1billet.log"); +$page = shell_exec(dirname(__FILE__)."/G1BILLETS.sh '".$_REQUEST['montant']."' '".$timestamp."' 2>&1 >> /tmp/g1billet.log"); $attachment_location = "/tmp/g1billet/".$timestamp.".pdf"; if (file_exists($attachment_location)) {