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!
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- How to get the return code of a shell script in lu
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
See
shell_exec()
,exec()
and other Program execution functionsuse the
exec()
function to execute an external script or function:http://us3.php.net/manual/en/function.exec.php
Using shell_exec you can invoke scripts and commands.