Hi there,
I'm calling PGP from PHP (in SAFE mode). The executable for PGP does exist in the special PHP 'safe mode' directory (I can telnet in and prove it).
Problem: When I call PGP from an EXEC call
in PHP instead of generating encrypted output to a file it responds with "Preparing random session key" and does nothing else!!!
Help me please - I've tried everything, I've scoured the web!
please note that I am using "conventional" encryption with PGP (the -c switch, supplying a password usign -z password, and using +force to overwrite the existing file, which i specify with -o outputfile).
Permissions? Well, I have used "chmod 777 outputfile", so I KNOW PHP can write to that file if it wants to (yes, i did a test, and fopen does work from PHP)
Please - has anyone got any pointers to what I can do next? I've heard people mention a PGP config.txt file needs to put created and put on the server - but I dont know where or what it should contain! Also I've heard that I should use "putenv" inside the PHP code, and specify the PGP path to the public keys! 1) I did this and PHP responded with "putenv" not allowed, and 2) I dont even know where the path to the public PGP keys are. Thing is - I'm using conventional encryption, so I dont NEED public keys!!!
Your help would be greatly appeciated, anyhelp at all, from anyone.
thanks
chris, manchester, UK