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);
?>