Posted by Alan Little on 05/07/06 17:11
Carved in mystic runes upon the very living rock, the last words of
Ivαn Sαnchez Ortega of comp.lang.php make plain:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Alan Little wrote:
>
>> I'm trying to operate gpg through proc_open. I can encrypt this way,
>> just fine, but when I try to decrypt I get:
>>
>> gpg: cannot open `/dev/tty': Device not configured
>>
>> Here's what I'm using; the same basic code works fine for encrypting:
>
> Calling "gpg" with proc_open or similar methods is a mess... consider
> using the PECL GPG extension - have a look at http://pecl.php.net .
Thanks for your response. Do you think it will be easier to sort out the
proc_open() method, or to figure out how to compile and install the
extension? And if I want to include this in distributed code later, does
that make a difference?
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
[Back to original message]
|