title: echo exec working but exec not
body: <p>I am using red hat enterprise edition n try making a simple php page..</p>
  
  <p>When I try with  ...</p>
  
  <pre><code> // html code
   &lt;?php
   echo exec(&lt;cmd&gt;); 
   ?&gt;
  // rest html code
  </code></pre>
  
  <p>Its working fine</p>
  
  <p>but when tried with ...</p>
  
  <pre><code> // html code     
   &lt;?php
   exec(&lt;cmd&gt;);
   ?&gt;
   // rest html code
  </code></pre>
  
  <p>Its not working</p>
  
  <p>even a simple command like cat,ls,etc not working and also I tried <code>2 &gt; &amp;1</code> then no error is printed . </p>
  
  <p>What could be the possible error ???</p>