PHP, apache, function exec(), stdin and pgp

From: Date: Fri, 04 Aug 2000 09:06:39 +0000
Subject: PHP, apache, function exec(), stdin and pgp
Groups: php.windows 
Request: Send a blank email to php-windows+get-1546@lists.php.net to get a copy of this message
Hi everybody, sorry to bug You with my bugs, but I have this situation I'm running PHP 4.0.1 pl2 on Apache server 1.3.12 on w2k now my problem is that I need to run external program pgpe to sign email which is sent to user, but the pgpe is waiting for password - since there's no parameter to input it thru command line I want to pass it thru standard input (There's similar example in PGP docs for C/C++) This is the code: exec("pgpe -r liv -s text.txt -at -o enctext.txt"); $fstdi=fopen("php://stdin"); if (!$fstdi) { echo "Could not open file."; } else { fwrite($fstdi,"password\n"); } but the page always hang out. Is there some library for pgp? Thanks for any help Bye Petr Chocholac petr@k2ia.com

« previous php.windows (#1546) next »