Addendum: When run in consile mode I get some warning messages, but the command does generate the encrypted file: Command: /usr/local/bin/gpg -a --recipient 'Ici Londres' --encrypt -o /home/tmp/pgpadvert.asc /home/tmp/pgpadvert Messages: gpg: WARNING: using insecure memory! gpg: please see http://www.gnupg.org/faq.html for more information TIA Lao Toma -----Original Message----- From: LaoToma [mailto:laotoma@minangel.com] Sent: Friday, December 13, 2002 4:05 AM To: 'SuSE Linux-e' Subject: [SLE] PHP / GPG Hi! I've installed gnupg-1.2.1 I can execute the 'gpg' command shown below in console mode, both as 'root' or 'httpd'. My webserver runs as 'httpd'. I have a PHP file running the same 'gpg' command and ... it does not work! To be sure, I ran another command ('who') through PHP, writing to same directory as 'gpg', and this one worked! I'm at a loss here. Any idea what I am doing wrong? // Command = /usr/bin/who > /home/tmp/pgp-who Result Code = 0 // Command = /usr/local/bin/gpg -a --recipient 'Ici Londres' --encrypt -o /home/tmp/pgpadvert.asc /home/tmp/pgpadvert Result Code = 2 // TIA Lao Toma -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.427 / Virus Database: 240 - Release Date: 06/12/2002