Private Label and Cobranded VoIP Solutions
BrainCast internet & phone based message/memo recording & reminder organization system
Internet Phone Service and Broadband Phone Service by ViaTalk

Go Back   VoIP Forums, Internet Phone Service Forums, & Web Hosting Forums > CoderForums - Programming Discussion > General Programming Issues > Programming Languages & Technologies > PHP

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-21-2002, 08:46 AM
pixelhed pixelhed is offline
Registered User
 
Join Date: Jan 2002
Location: austria
Posts: 1
Send a message via ICQ to pixelhed
Warning! GnuPG & PHP problem

I have a PHP related problem

The problem is:
I am using php to activate GnuPG to encode an email message that is generated from user input.

When i issuse the command:
system("/usr/bin/gpg --encrypt -ao $crypted -r $publicKey $plainTxt");

i get an error saying:
Warning: fopen("/home/kinetec/public_html/test/10af1b69474fccf44519acd09f2a31e2gnupgdata","r") - No such file or directory in /home/kinetec/public_html/test/do_sendsecret.php on line 33

This line (33) is directly after the line that tries to execute the GnuPG program. It attempts to read the encoded by GnuPG into a variable. As the file does not exist, the system command is not working (because it creates it).

I have chmod'd the dir to 777. But this didn't help. The script (prior to the line above) manages to create a file on the filesystem so i know that i can write files. It is (i think) that PHP runs as 'nobody' which doesn't have permission to execute the command.

Does anyone have any suggestions?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump