Importing Public Keys with PHP
Mike Foster
compuspec@qld1.com
Wed Feb 5 04:12:01 2003
Can anyone help, I've spent hours trying to get this to work!
My code is:
$pubfile="/home/httpd/vhosts/test.com/httpdocs/pubkeys/$subject" ;
$gnupg_path = '/home/httpd/vhosts/test.com/.gnupg';
$gpg = '/usr/bin/gpg';
$cmd = "$gpg --import $pubfile";
I echo the $cmd
usr/bin/gpg --import
home/httpd/vhosts/epitmail.com/httpdocs/pubkeys/cl1@test.com.PUB
Just to check it is ok! IT IS the correct syntex and works if I type it in
at the command prompt using "putty"
Then I call
exec($cmd);
Nothing Happens!
Any Help would be appreciated!
Mike Foster
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003