For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > September 2004 > GNUPG and weird file propblem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author GNUPG and weird file propblem
Shaitan

2004-09-28, 4:00 pm

Hello,

I am working with PHP and gnupg and I was wondering if anyone might help
with this 'interesting' problem.

What I am doing is creating an unencrypted and encrypted file with
tempnam(). The unencrypted file gets populated with the info gpg needs to
complete the encryption and this is then piped into a variable to be used by
gpg. This all works fine.

Basically.....I have my encrypted file created by tempnam, and then
populated by the gpg command which is run from an exec command. After its
encrypted I am trying to open it for debugging, but I end up getting a :

"No such file or directory " error, yet it really is there, I have double,
triple and even quadruple checked numerous times.

any ideas on while php will create the file, have gpg populate it, yet for
all intensive purposes it can not see it if its trying to read it for info?

thanks
Michael



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com