I'm trying to give two commands on one line to shell_exec however there is no output. However, if passing only one command at a time this works perfectly fine:
$output = shell_exec('whoami');
echo($output); // This works
$output = shell_exec('dir');
echo($output); // This works as well
$output = shell_exec('whoami; dir');
echo($output); // No output...
What am I missing? I'm running a XAMPP (3.2.4.) environment on Windows 10 Build 20H2.