forked from qo-op/G1BILLET
running shell_exec please
This commit is contained in:
parent
62c6398fd8
commit
85533cf64e
@ -1,14 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
if ( ! isset($_REQUEST['montant']) ) {
|
|
||||||
$_REQUEST['montant'] = "5";
|
|
||||||
}
|
|
||||||
$mytime = new Datetime("now");
|
$mytime = new Datetime("now");
|
||||||
$timestamp = $mytime->format('U');
|
$timestamp = $mytime->format('U');
|
||||||
|
|
||||||
// CREATE 6 G1BILLETS in /tmp/g1billet/$timestamp
|
// CREATE 6 G1BILLETS in /tmp/g1billet/$timestamp
|
||||||
$output = shell_exec('ls /tmp/ 2>&1');
|
$page = shell_exec(dirname(__FILE__)."/G1BILLETS.sh '".$_REQUEST['montant']."' '".$timestamp."' 2>&1 >> /tmp/g1billet.log");
|
||||||
echo $output;
|
|
||||||
//$page = shell_exec(dirname(__FILE__)."/G1BILLETS.sh '".$_REQUEST['montant']."' '".$timestamp."' >> /tmp/g1billet.log");
|
|
||||||
|
|
||||||
$attachment_location = "/tmp/g1billet/".$timestamp.".pdf";
|
$attachment_location = "/tmp/g1billet/".$timestamp.".pdf";
|
||||||
if (file_exists($attachment_location)) {
|
if (file_exists($attachment_location)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user