shell_exec("gpg --batch --passphrase LongButPlainPassword -o /var/www/html/decrypt/save/".$filename." --decrypt /var/www/html/decrypt/save/orig/".$filename);
I have searched many places this works in terminal but not in shell_exec(). Am I misunderstanding how this works? The destination folder has 777 permissions.