hey,
i'm running php4.3.1 + apache2.045 on winxp (dev bed).
i'm trying to use gpg to encrypt a string
$bar = 'c:/path/to/file.txt';
$foo = `c:/gpg/gpg.exe -ea -r bob < $bar`;
no matter what i do, i never get an output back, yet if i paste the exact command that is being executed into the cmd prompt, it works fine.
i've tried exec(), system(), passthru() etc.
i've tried redirecting the output to a text file
$wtf = `c:/gnupg/gpg.exe -ea -r bob < d:/foo.txt > d:/foo2.txt`;
like so, which again works fine if I execte from the cmd prompt.
but via php, i get a blank text file.
i've also tried using double slashes, etc.
quite literally tried everything i can think of, with a frustrating lack of results.
i would reallly appreciate any help anyone could provide. if there's something glaring obvious i'm doing wrong, i'd love to know.