$key = file_get_contents('http://keyserver.pramberger.at/pks/lookup?op=get&search=uid');
after getting public key in '$key'
variable i need to encrypt the data using this public key.
the key must be start with ----Begin pgp block ---to end pgp block----.
How this can be done in php?