PHP.nl

gnupg_geterror

gnupg_geterror

Returns the errortext, if a function fails

 **gnupg_geterror** resource $identifier

identifierReturns an errortext, if an error has occurred, otherwise false.

Voorbeeld: Procedural example

<?php
$res = gnupg_init();
echo gnupg_geterror($res);
?>

Voorbeeld: OO example

<?php
$gpg = new gnupg();
echo $gpg->geterror();
?>