PHP exec Failing with Status = 3
<p>I have the following code snippet:</p>

<pre><code>$app = '"' . getcwd() . "\\prog.exe" . '"';
exec("$app param1 param2", $output, $status);
</code></pre>

<p>It runs fine locally on EasyPHP-12.1, but when I uploaded it to the deployment server, it failed with $status==3.  I tried leaving out the path like so:</p>

<pre><code>exec("prog.exe param1 param2", $output, $status)
</code></pre>

<p>Again, it ran fine locally, but failed on the server.</p>

<p>Can you think of anything that I could be doing wrong? </p>
