I am running the following php script:
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
date_default_timezone_set('UTC');
echo nl2br("Before\n\n");
$out = shell_exec("ls -lart");
echo "<pre>$out</pre>";
echo nl2br("After\n\n");
?>
I cannot get shell_exec
or exec
to work at all. The script above produces:
Before
After
but nothing in between.