Hello!
I'm trying to get my PHP form processor to encrypt the data using GnuPG.
Code:
$gpg = 'usr/bin/gpg';
$recipient = 'first.last@domain.com';
$encrypted_message = base64_encode(shell_exec("echo $message | $gpg -e -r $recipient"));
What I get in return is "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING" for the first or second line. I wonder why? Could it be that the path to the binary is wrong?
I have tried using double quotes and changing the variables names.
Could you help please?
Thanks