how to execute a .exe program by php script
<p>I want to execute a .exe file on my Apache server using a php script.
the procedure is as follow:</p>

<p>1- user comes, fills a html form</p>

<p>2- it goses to a php script</p>

<p>3- php script executes the <code>name.exe</code> file</p>

<p>4- php prints the output of the <code>name.exe</code> file on the page.</p>

<p>I execute the name.exe normally from windows like this:</p>

<p><code>run--&gt; cmd--&gt; D:\name [command]</code></p>

<p>the name.exe needs to communicate with other files like libraries in the same directory.</p>

<p>the complete comand in cmd at windows is like this:</p>

<p><code>D:\name library.dll [input from user]</code></p>

<p>then program executes and prints some results in cmd window.</p>

<p>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.</p>

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

<p>thanks in advanced,
John.</p>
