Is it possible to integrate the two?
I found this example on the net, but it outputs a blank page. bash on its own is working and outputs Hello World!
bash with 0777 chmod
echo.txt
#!/bin/bash
echo "Hello World!"
PHP
<?php
$result=shell_exec("echo.txt");
echo($result);
?>
Specify the path to echo.txt, relative to the PHP script or absolute path, and make sure the script is executable.
Without specifying the relative path, and running the PHP from the command line, the output was
It will work properly with the path specified.