I installed PHP as a module in IIS on Windows Server 2008, with great difficulty I try to execute programs from the command line from a PHP script.
I can execute the php code using php-cgi.exe and php-cli.exe, which makes me think that this might be an access issue.
However, I can execute some commands, such as shutdown.exe and dir.
I tried the same process in an ASP.NET file and have exactly the same problem.
Basically, I would like to do this:
Exec ("path to the EXE file");
And actually it works.
source
share