nginx - How to execute java command from php page with shell_exec() function? - Stack Overflow

PHOTO EMBED

Mon Apr 03 2023 23:18:40 GMT+0000 (Coordinated Universal Time)

Saved by @mvieira

exec('java -version '.' 2>&1', $result);
var_dump($result);
content_copyCOPY

https://stackoverflow.com/questions/56571689/how-to-execute-java-command-from-php-page-with-shell-exec-function