Hi All ,

Ok where to start.

I have a php website that basically has a series of forms that can be filled in and submitted to email myself and I want them pgp signed.

I am running freebsd 8 , pgp works fine from the command line and creates the text.asc files ok with the pgp signed information.

However if I try and call this command function through the PHP code using the $exec_command it fails , I am running the command through php script and sudoing to root in the process and have checked all the permissions for the directories and all is good .

In the httpd-error logs I get this

cannot open tty, using stdin

Unable to get terminal characteristics: ioctl: Inappropriate ioctl for device

This is being generated by pgp .
any ideas , I have googled my heart out here and can find nothing

running pgp 2.6.3.ie , did try upgrading to newer version through ports tree but that broke everything

help appreciated