title: Getting full output from php system() function
body: <p>I have a problem with php system() function output. So here goes the code:</p>
  
  <pre><code>system("c:\\Dev-Cpp\\bin\\g++.exe c:\\wamp\\www\\hello.cpp -O3 -o c:\\wamp\\www\\hello.exe", $output);
  
  echo $output;
  </code></pre>
  
  <p>So if my hello.cpp does compile I get 0, if it doesn't I get 1.</p>
  
  <p>If I run the same thing from CMD instead of giving just 1 it gives me full error.</p>
  
  <p>How can I get the full error with php system() function?</p>