0
LinuxサーバーでPHPを使用して4つのファイルをテストし、その結果がテキスト領域に表示されます。これを解決する正しい方法が何であるか教えてください。phpボタンからbashコードを実行しています
のSh test_batch.sh
$ {dict_file} $ {locale} $ {keyboard_layout} $ {golden_test_file} $
{auto_correction_file} (optional)
if (isset($_POST['files'])) {
foreach ($_POST['files'] as $value) {
echo $dir . $value . '<br />';
$result = shell_exec('sudo sh test_batch.sh $dir .$value. ');
}
}else {
exit('No files selected');
}
}
?>
<br/>
<table>
<tr>
<td><b>Result to Display and Save:</b></td></tr>
<tr>
<td colspan="3">
<textarea disabled id="inputTextToSave" style="width:512px;height:256px" value = "'.$result.'"></textarea>`