私はこれを持っています:
<?php
if ($_GET['run']) {
# This code will run if ?run=true is set.
exec("./check_sample.sh");
}
?
<!-- This link will add ?run=true to your URL, myfilename.php?run=true -->
<button type="button" onclick="?run=true">Click Me!</button>
シェル スクリプト check_sample.sh には、printf/echo を使用して出力する o/p がいくつかあります。また、テキスト入力を受け取り、それを $1 arg として渡す方法に関する任意のポインター。スクリプトも役立ちます