"; for ($i=1; $i', '', $selbit); } } $outpute = str_replace("\n", "
", exec($cmnd . $switch)); $output = str_replace("\n", "
", shell_exec($cmnd . $switch)); // Display the list of all file // and directory, if chosen echo "find_minus.php - PHP Supervise find or dir function titleme(so) { if (so.value.indexOf('-mtime') != -1) { so.title='find via modified time switch'; } else if (so.value.indexOf('-Btime') != -1) { so.title='find via file inode creation time switch'; } else if (so.value.indexOf('-ctime') != -1) { so.title='find via created time switch'; } else if (so.value.indexOf('-atime') != -1) { so.title='find via access time switch'; } }
" . $selbit . "   RJM Programming - March, 2022
Thanks to https://www.geeksforgeeks.org/php-shell_exec-vs-exec-function/
$" . "output = shell_exec('" . $cmnd . $switch . "');$" . "output = exec('" . $cmnd . $switch . "');
$output
$outpute
"; ?>