Php and gnuPG

Hi

I have configured gnuPG on the server and this works from the command line

I cannot get PHP to work with it though!

The gnuPG module is displayed in the info file as being active but for some reason I dont get any messages from it when using the encrypting methods whether that be errors or output

Any ideas?

You should enable the error reporting for your gnuPG tests so you can draw conclusions. Put the following code at the beginning of your PHP file:

if (function_exists("ini_set")) {
	ini_set("error_reporting", E_ALL);
	ini_set("display_errors", 1);
} else {
	echo "I couldn't activate the error reporting.";
}

i actually have been using the following in my code


ini_set("error_reporting", E_ALL);
ini_set("display_errors", 1);