PHP & GNUPG question...

Gold gold@babel.com.au
Fri Nov 2 05:21:01 2001


--bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Nov 01, 2001 at 10:04:03AM -0800, bernardino lopez wrote:
> I wonder why PHP does not show the result of the
> encryption.
>   [snip]
> Some Suggestion???

I'm currently integrating gpg into IMP and had this problem.

gpg doesn't actually send any output to std-out or tty (or whatever we use when we access it from php).  I got around this by using --output somefile and then $encrypted =`cat somefile` (note that these are backticks, _not_ single quotes.

Let us know how you get on.

Au.

--bg08WKrSYDhXBjb5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE74h7KT3aZWf3sWWkRAp86AJ0SJ+apgpQIkQ2ZyHHF5yzQrJD1sgCfVfRR
bkD/e59wphbLZ0R0xNhm3BY=
=p0Oz
-----END PGP SIGNATURE-----

--bg08WKrSYDhXBjb5--