I am trying to do the following in my php file:
exec("java -jar /Applications/XAMPP/htdocs/Web/SimpleEncryption.jar hola", $output);
I get array(0) { }
If I execute php file.php in the terminal it works.
If I run
exec("whoami", $result);
I get Array ( [0] => daemon ) in the browser and Array ( [0] => dao ) in the terminal. dao=my user.
I don't know what permissions I have to give and how to give them.
Thanks