shell_exec and exec do not return any content. I canβt understand what happened.
Here is the code:
echo 'test: '; $output = shell_exec('whoami'); var_export($output, TRUE); echo PHP_EOL . '<br>' . PHP_EOL;
And here is the source of the output
test 2: <br>
I have no control over the host, but I believe that they run SuPHP. According to phpinfo , safe_mode is off. Running whoami from SSH prints the expected value.
I'm at a loss. Any idea how to debug this?
source share