Hi,
I have just installed windows 2003 server, which has IIS/6.0. I have also installed the php-4.3.6-installer.exe from the php site. Now some php programs are woking fine, but it is showing error when I try to run some external exe file from php program. I have tried using shell_exec and ``, but neither of them is working. It is showing an error message saying Warning: shell_exec(): Unable to execute 'program.exe'. After that I have tried to execute simple dir command which also failed. This is the program I tried and the out put is shown below.
<?php
echo "Hello! how are you?";
$var = dir;
echo $var;
?>
---output---
Hello! how are you?
Warning: shell_exec(): Unable to execute 'dir' in e:\inetpub\wwwroot\sample.php on line 4
---output----
Can any one please tell me why is this happening? Is it due to some security measure taken by IIS or anything else?
thanks in advance,
venkata ramana.