I don't know...
Never used safe mode.
I *think* you would have to have all the files under your web-tree, but that
might make gpg rather unsuitable. If your private key-ring file is in your
web-tree, it's maybe just a little too exposed...
Maybe you can create a custome keyring for just the web-usage of public keys
only...
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Rodolfo Gonzalez Gonzalez <[EMAIL PROTECTED]>
To: Richard Lynch <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 3:42 PM
Subject: Re: [PHP] Mail-Encryption
> On Thu, 8 Feb 2001, Richard Lynch wrote:
>
> > You can find a long-winded post from me a year or two ago about my
trials
> > and tribulations (and a *lot* of help from others to get me going).
>
> I found a pgp class and took parts of it to work with gpg, but it doesn't
> work in safe-mode. I'm using this pipe to pass the data to encrypt to gpg:
>
> $comm = "echo '$data' | $this->gpg-commmand";
> $fd = popen("$comm","r");
>
> if (!$fd) {
> return -2;
> }
>
> $encrypted = "";
> while (!feof($fd)) {
> $encrypted .= fgets($fd,4096);
> }
>
> pclose($fd);
>
> This returns echoes the part after the | in safe-mode. How could this work
> in this mode?.
>
> Thank you.
> Rodolfo.
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]