proc_open working directory
<p>I have a PHP script at the following location
C:\wamp\www\tcl\bin\ </p>

<p>I am accessing the same through a browser (<a href="http://localhost/tcl/bin/xxx.php" rel="nofollow">http://localhost/tcl/bin/xxx.php</a> </p>

<p>In the PHP script . I am doing a proc_open </p>

<pre><code>$app = 'C:/wamp/www/tcl/bin/tclsh84.exe';
$process = proc_open($app, $descriptorspec, $pipes);
</code></pre>

<p>if i give the full path it works , but if I just give tclsh84.exe it does not work . 
Although the PHP manual states if you don't give  4th parameter of proc_open (CWD) it takes the directory of the currently executing process. </p>

<p>Can someone guide me as I can't hardcode the tcl executable path as this needs to work both in windows and linux . </p>

<p>Regards,
Mithun</p>
