So far I have had no problem getting shell_exec to work on simple things like ls, cd or pwd. However, when I try something a little more complicated, it isn't working and I don't know why.
Here is the code I am attempting to execute:
$output = shell_exec('apktool d -f $file_name');
echo "<pre>Output :<br />$output</pre>";
apktool is used to reengineer android applications. The code I type to execute it normally in the terminal is identical to what I typed for shell_exec but it isn't working and I don't know why. Any suggestions?
Additional things to note:
I know php.ini has safe_mode off and shell_exec is not in disable_functions. I also tried it with backticks and nothing
Thanks!