Reputation: 22370
I am trying to trigger the running of a shell script using PHP. Essentially, when a user completes an action on our website programmed in PHP, we want to trigger a shell script which itself calls a Java file. Thanks in advance!
Upvotes: 2
Views: 1011
Reputation: 33537
use the exec()
function to execute an external script or function:
https://www.php.net/manual/en/function.exec.php
Upvotes: 0
Reputation: 85458
See shell_exec()
, exec()
and other Program execution functions
Upvotes: 3