How to show the output of a shell script in PHP:
<?php
echo '<pre>';
// Use 'system' to run the script.
$scriptOutput = system('/Destiny/www/html/current/testscripts.sh', $retval);
echo '</pre>';
?>
<?php
echo '<pre>';
// Use 'system' to run the script.
$scriptOutput = system('/Destiny/www/html/current/testscripts.sh', $retval);
echo '</pre>';
?>
0 Comments