suche nach in der

gnupg_seterrormode> <gnupg_keyinfo
Last updated: Fri, 18 May 2012

view this page in

gnupg_setarmor

(PECL gnupg >= 0.1)

gnupg_setarmorToggle armored output

Beschreibung

bool gnupg_setarmor ( resource $identifier , int $armor )

Toggle the armored output.

Parameter-Liste

identifier

Eine von gnupg_init() oder der Klasse gnupg zurückgegebene GnuPG-Ressource.

armor

Pass a non-zero integer-value to this function to enable armored-output (default). Pass 0 to disable armored output.

Rückgabewerte

Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.

Beispiele

Beispiel #1 Procedural gnupg_setarmor() example

<?php
$res 
gnupg_init();
gnupg_setarmor($res,1); // enable armored output;
gnupg_setarmor($res,0); // disable armored output;
?>

Beispiel #2 OO gnupg_setarmor() example

<?php
$gpg 
= new gnupg();
$gpg -> setarmor(1); // enable armored output;
$gpg -> setarmor(0); // disable armored output;
?>



add a note add a note User Contributed Notes
gnupg_setarmor
There are no user contributed notes for this page.

gnupg_seterrormode> <gnupg_keyinfo
Last updated: Fri, 18 May 2012