Thanks for reply,

I'm using apache, so is there away to get the output sent to PHP?  Someone
suggested using system("pgp 2>&1"); but all I get is:
        Pretty Good Privacy(tm) Version 6.5.1i (c) 1999 Network Associates Inc.
Export of this software may be restricted by the U.S. government. No
configuration file found. Error!!! insufficient random bits

Not quite what I had in mind but a step in the right direction.  Any ideas?

Thanks for the help

David Price

-----Original Message-----
From: Maxim Derkachev [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 1:05 AM
To: David Price
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] System() and PGP


Hello David,

Thursday, July 19, 2001, 8:48:17 AM, you wrote:

DP> I can use this command to encrypt messages:

DP>         system("pgp -ea $plainTxt 'David Price
<[EMAIL PROTECTED]>'");

DP> without any problems.  But when I try,

DP>          system("pgp");

DP> I don't get any output.  It should display the general help text.

It does. But it sends the output to STDERR, which PHP doesn't have access
to. If you do this with apache, the output will go straight to the
apache, omitting PHP, if from a shell with PHP executable, the lines go
to the shell's tty.



--
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator & programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to