Hi, please help me with this problem that is driving me nuts! I am using php 3.0.12. Linux, apache and php is a mod.
Ultimately I want to send a PGP signed email, which is not a problem, I intend to obtain the signed text using pgps, like so:
pgps -u user@domain.com -at -z mypassprhase +batchmode=1 +force -o /home/pathto/www/tempSignatures/out3.txt /home/pathto/www/tempSignatures/test.txt
where test.txt is the original message and out3.txt is the signed version. So why not use system() in my script, right!!?
This is the bit the bit thats making me crazy. It doesnt work, so, for simplicities sake, I tried:
echo system("/bin/ls");
nothing back.
I tried:
$fd = popen("/bin/ls", "r");
$buffer="";
while (!feof($fd)) {
$buffer.= fgets($fd, 4096);
}
pclose ($fd);
echo $buffer;
nothing back, safe mode is off according to phpinfo().
so I tried;
system("touch /home/pathto/www/tempSignatures/foo.bar");
just to see if it is executing the commands, and it is!
so what's going on, I can't get pgps to execute, dispite setting tempSignatures directory permissions to 777. I cant even get the response from ls!
Please help, thanks in advance,
Jim