Running a BASH command from PHP

This code will run the PHP code and output the date on the HTML page.


$output = shell_exec('date');
echo "
$output
";
?>

Comments

Popular Posts