Importing Public Keys with PHP

Mike Foster
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/$subject" ;
$gnupg_path = '/home/httpd/vhosts/';
$gpg = '/usr/bin/gpg';
$cmd = "$gpg --import $pubfile";

I echo the $cmd
usr/bin/gpg --import
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
Nothing Happens!
Any Help would be appreciated!
Mike Foster
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003