Script use of GPG

eric h mrunknown@postmark.net
Wed Sep 4 02:35:02 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hello,

im trying to use GnuPG to call from a PHP script to encrypt email
submitted 
from a form. Unfortunately, i cant seem to get it to work.

basically my question is how can i get GnuPG to operate with
basically no 
environment. specify all the files needed on the command line?

currently this is what the output of the script gives in stderr:
gpg: keyblock resource `/root/.gnupg/secring.gpg': file open error
gpg: Warning: unsafe ownership on file 
"/home/eric/public_html/gpg/gpgkeys.pub"
gpg: /root/.gnupg/trustdb.gpg: can't access: Permission denied
gpg: fatal: can't init trustdb: trust database error
secmem usage: 1408/1408 bytes in 2/2 blocks of pool 1408/16384 

the same command works just fine if i type it all out on the command
line and 
operate it. anyone know a way to get around this?

- -- 
eric.h
mrunknown at postmark dot net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9dVVktSoep668WJMRAppEAJ4tiaM5uPXkyUZ+edruPlo5irLrggCgjIvx
Tcd0IdzS3vT2NJh5LzXW644=
=CuDg
-----END PGP SIGNATURE-----