Re: Mail-Encryption
| From: | Christian Reiniger | Date: | Fri, 09 Feb 2001 10:10:39 +0000 |
| Subject: | Re: Mail-Encryption | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38927@lists.php.net to get a copy of this message | ||
On Wednesday 07 February 2001 22:42, Rodolfo Gonzalez Gonzalez wrote:
> 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");
> This returns echoes the part after the | in safe-mode.
echo only outputs something. it doesn't return anything. Write
$comm = "$data | " . $this->gpg_command;
and:
$this->gpg-kommand is an illegal (no minus in identifiers!)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like sex: the best is for free" -- Linus Torvalds