exec and gpg
| From: | Andrew Presley | Date: | Tue, 17 Dec 1996 17:47:06 +0000 |
| Subject: | exec and gpg | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-13808@lists.php.net to get a copy of this message | ||
Hi,
I'm using PHP Version 3.0.12 on Free BSD as an Apache module and
I'm currently running(or tyring to run) a script that encrypts an email.
Im using pgp and exec to do this. The script ran fine for months. Then
it suddenly stopped working properly. The error sent back from gpg
through the exec command is 127. I can't find any documentation
on gpg error codes.
Here is the exec command that i'm using with $body being the message
$command = "echo \"$body\" | gpg -a -e -u 'blah@blah.com -r
'blah2@blah.com'
";
exec($command,$encrypted_text,$errorcode);
Like I said this worked fine for months but now its just not encrypting.
I've taken
this echo and | and run it command line and it works fine when substituting
text
for $body. Thats what is strange. I know(or think) the command is right
but the
text will just no longer encrypt. Please HELP!!!
Thanks,
Andrew Presley
apresley@insolwwb.net