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.

[PHP] Using GnuPG with PHP

2001-07-19 Thread Jeff Bearer
I saw examples of how to encrypt data with GnuPG in the list archives but I'm having problems that aren't mentioned. I've installed the public key in the web server users key ring, and if I run the command as the web server user it works just fine. But when the script runs it I get nothing r

[PHP] Using gnupg with php - errors

2001-04-14 Thread sohara
Hello all, This has been covered before, but I can't get it to work and I've searched all the archives already. I am trying to encrypt a small string of data. I am using a script by Richard Lynch as my starting point. I found it here: http://www.weberdev.com/get_example.php3?count=1379 Now, I