How would you get the string output of the current shell in PHP?
This is what I tried
$output = shell_exec('echo $SHELL 2>&1');
but I'm getting empty output when I print it out.
$output should be a string that is something like /bin/bash
How would you get the string output of the current shell in PHP?
This is what I tried
$output = shell_exec('echo $SHELL 2>&1');
but I'm getting empty output when I print it out.
$output should be a string that is something like /bin/bash