Php system problem
Posted: Sun Aug 19, 2007 2:15 am
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.
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.