Hi.
I've still got a problem with encrypting in PGP from PHP.
I am using a CGI file with the header
#!/usr/local/bin/php
$crypted and $plainTxt are names for files
The following code:
system("/usr/local/bin/pgpe -r 'RESNET <info@reservationsnetwork.ie>' -o $crypted -a $plainTxt");
echos back as:
/usr/local/bin/pgpe -r 'RESNET ' -o /home/ambitire/reservationsnetwork_html/respix/264802c7c85ddce5ae5b1ccc48164f5dpgp -a /home/ambitire/reservationsnetwork_html/respix/264802c7c85ddce5ae5b1ccc48164f5ddata
and if I copy that to Telnet it works. Produces the file and all that.
But from the web page it doesn't work. It gives the error:
Warning: fopen("/home/ambitire/reservationsnetwork_html/respix/264802c7c85ddce5ae5b1ccc48164f5dpgp","r") - No such file or directory in /home/ambitire/reservationsnetwork_html/test/respag/encnew1.cgi on line 39
Meaning it didn't create the encrypted file.
I am at a loss as to why it should work fine in Telnet, but not from the web page. Now, prior to this problem, a similar thing happened and it was because I was running ordinary php3 pages. But I have changed to cgi - (and it did work!) - so, has anyone any ideas why it should not be working now?
Regards
Elizabeth