Re: GPG in PHP

From: Date: Tue, 16 Sep 2008 13:38:51 +0000
Subject: Re: GPG in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-280271@lists.php.net to get a copy of this message
On Sep 16, 2008, at 8:52 AM, Emil Edeholt wrote:
Hi! I have trouble executing gpg via php. GPG returns error code 127. I got like one google hit on that saying it had to do with open_basedir being on, it's off here. And anyway I would like to do this even if open_basedir was active. This is my test code (both return the same error): $result = exec("gpg -h", $output, $errorcode); $result = exec("gpg --list-keys", $output, $errorcode); Any ideas of what can be wrong? I've been asking some GPG folks, but haven't been able to get a good answer.
I'm just curious, what happens if you execute the command directly from the command line? Does it work or do you get the same error?

« previous php.general (#280271) next »