When I execute my command in PHP with shell_exec it always returns an empty string. I tried shell_exec(\'ls -l\'); and it works. I put the command as
shell_exec
shell_exec(\'ls -l\');
Maybe this is why that
Try to use system