PHP Script runs on the command line but no output in the browser
<p>I have a PHP script which calls a Windows batch file.  The batch file uses plink to go out to a Linux server and check for a process.  From the command line the batch works fine.  From the command line if you call the PHP script you get the desired output, however through the browser the page is just blank.</p>

<p>The PHP code is:</p>

<pre><code>$output=shell_exec('c:\\wamp\\www\\dev_check.bat');
echo $output;
</code></pre>

<p>The batch file is:</p>

<pre><code>@echo off
c:\\windows\\plink.exe servername "ps -ef | grep jboss | grep -v  grep &amp;&amp; echo "OK" || echo "Not OK" 2&gt;&amp;1"
</code></pre>

<p>The PC is running WAMP.</p>
