Re: [PHP] Using GnuPG with PHP

2001-07-19 Thread Jeff Bearer
For anybody who cares I found the problem with the command below, the environment of the webserver user was set to the environment of the user who started it, so it could not find the ~/.gnupg directory so I added the --homedir switch and all is fine. Thanks for the imput however I'll examine

Re: [PHP] Using GnuPG with PHP

2001-07-19 Thread Maxim Derkachev
Hello Jeff, Thursday, July 19, 2001, 6:50:18 PM, you wrote: JB> $command="echo \"$plain\"|gpg -e -a --always-trust --no-secmem-warning --batch -r public_key"; JB> $encrypted=`$command`; use popen() in read mode instead. There's a class made by me at phpclasses.upperdesign.com that do the job.