Hello, I am trying to execute a few shell commands, I checked and I have safe mode off, here is my code:
$pwd = shell_exec('pwd');
echo $pwd;
This page displays nothing, it does not print my directory.
Hello, I am trying to execute a few shell commands, I checked and I have safe mode off, here is my code:
$pwd = shell_exec('pwd');
echo $pwd;
This page displays nothing, it does not print my directory.
It's good to put 2>&1 at the end of all your commands to see if any errors occured. Not windows' servers of course.