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?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php