I am trying to execute a .jar file from PHP. This is the code
$data = $cardnumber."|".$cvv."|".$expyear."|".$expmonth;
$javacommand = "java -jar atomintegration.jar "."\"".$data."\"";
echo "Command: ",$javacommand,"<br>";
exec($javacommand, $output);
echo "Encrypted data: ",$output[0],"<br>";
It is just not working. Im using codeigniter. This function code is inside a library and the .jar file is also in the same dir as that of the library.
I tried running it from putty/shell it was executing.
In the code the exec
is not working.
How do I resolve this?