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

--
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]

Reply via email to