how to execute a .exe program by php script

Posted by user347262 on Stack Overflow See other posts from Stack Overflow or by user347262
Published on 2010-05-21T16:45:36Z Indexed on 2010/05/21 16:50 UTC
Read the original article Hit count: 161

Filed under:

hello

I want to execute a .exe file on my Apache server using a php script. the procedure is as follow:

1- user comes, fills a html form

2- it goses to a php script

3- php script executes the name.exe file

4- php prints the output of the name.exe file on the page.

I execute the name.exe normally from windows like this:

run--> cmd--> D:\name [command]

the name.exe needs to communicate with other files like libraries in the same directory.

the complete comand in cmd at windows is like this:

D:\name library.dll [input from user]

then program executes and prints some results in cmd window.

I actually want to run this program on my server form my clients. I dont know how, but I now there is a way to do this.

another related questoin is that, is there any shell that i can install on Linux server and execute name.exe in it?

thanks in advanced, John.

© Stack Overflow or respective owner

Related posts about php