Re: Signing Files with PGP
| From: | Brian Clark | Date: | Thu, 20 Dec 2001 14:37:01 +0000 |
| Subject: | Re: Signing Files with PGP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78324@lists.php.net to get a copy of this message | ||
* J.Mueller, pro.vider.de GmbH (j.mueller@pro.vider.de) [Dec 20. 2001 04:17]:
> Hello List,
Howdy..
> I try to setup a script which automatically
> signs a file with PGP.
[...]
> When I use something like
> $command="/usr/local/bin/pgps -u Juergen -ato test1.sig ~/test1.txt";
> exec("$command",$answer);
> obviously nothing is happening cause the pass phrase was
> not given.
One way is to use popen() to execute the command and fputs() to write
out the passphrase.
<http://download.php.net/manual/en/function.popen.php>
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Variables won't.... constants aren't.