我使用了Crypt_GPG这个开源项目来解密GPG,这是我找到的几个为数不多的PHP的GPG库中比较好的了,但是中间遇到一些问题。
在浏览器端的错误输出信息:
( ! ) Fatal error: Uncaught <table style="border: 1px" cellspacing="0"> <tr><td colspan="3" style="background: #ff9999"> <b>Crypt_GPG_FileException</b>: The 'homedir' "/Library/WebServer/.gnupg" is not readable or does not exist and cannot be created. This can happen if 'homedir' is not specified in the Crypt_GPG options, Crypt_GPG is run as the web user, and the web user has no home directory. in <b>/usr/local/webdata/andy/fanli/citic/Crypt/GPGAbstract.php</b> on line <b>278</b></td&g