我有这样的:在脚本运行EXEC
<?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>
shell脚本check_sample.sh有一定的O/P,它打印用printf /呼应 当我点击“点击我”我不明白那些o/p。还有关于如何使其 接受文本输入并将其作为$ 1参数传递的任何指针。脚本也将有助于
有没有什么办法可以做到这一点,而不使用shell脚本/传递参数?没有正确地转义输入而使用shell命令会导致严重的安全漏洞。 –