Page 1 of 1

Php system() problem

Posted: Sun Aug 19, 2007 2:13 am
by dbrock178
Hello all,

I am currently having a problem calling certain executable files using PHP 4.4.2 and Windows XP. I am currently trying to get GPG to encrypt a file for me using PHP.

If I do system('del c:\\temp\\order.txt',$retval); I have no problem with the command executing.

If I do
system ('C:\\Program Files\\GNU\\GnuPG\\gpg.exe -r jimmy --encrypt c:\\temp\\order.txt',$retval); nothing happens.

I created a small C program using the system function to call GPG and it worked fine, but when I tried to have PHP's system function call my C program nothing happens.

Any advice as to what the problem could be?

Thank you.

Posted: Thu Aug 23, 2007 1:00 am
by Benjamin
I think there is a setting someplace in the IIS server configuration you have to check which says something like "allow ... to interact with the desktop".

Once you check that box it should work. You'll probably have to reboot and it doesn't really work worth a damn but that should solve your problem somewhat.