(PECL gnupg >= 1.5)
gnupg_getengineinfo — Returns the engine info
Returns an array with engine info consting of protocol
,
file_name
and home_dir
.
Example #1 Procedural gnupg_getengineinfo() example
<?php
$res = gnupg_init();
print_r(gnupg_getengineinfo($res));
?>
The above example will output:
array(3) { ["protocol"]=> int(0) ["file_name"]=> string(12) "/usr/bin/gpg" ["home_dir"]=> string(0) "" }
Example #2 OO gnupg_getengineinfo() example
<?php
$gpg = new gnupg(["file_name" => "/usr/bin/gpg2", "home_dir" => "/var/www/.gnupg"]);
print_r($gpg->getengineinfo());
?>
The above example will output:
array(3) { ["protocol"]=> int(0) ["file_name"]=> string(13) "/usr/bin/gpg2" ["home_dir"]=> string(15) "/var/www/.gnupg" }
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant