I've got an Apache/PHP server running on Windows, and I'd like to execute an exe program with some lines of PHP.
I've tried many things that I found on this site and on others, but I can't find anything that works.
Some times there's no GUI, some times it's waiting for the program to close... Can't find anything.
Is there anyway to do it or is it strictly impossible?
To Launch the application try this;
<?PHP exec("c:\\\\windows\\system32\
otepad.exe"); ?>
Then to close it;
<?PHP exec("taskkill /im notepad.exe"); ?>
The path depends on your system.
exec()
just performs a command in command prompt. Its a massive security issue, but it works. Make sure you are running Apache/PHP as the logged on user.