title: PHP - shell_exec output in browser is empty
body: <p>I'm running a simple <code>wget</code> command in <code>shell_exec()</code></p>
  
  <p><strong>wget_file.php</strong></p>
  
  <pre><code>&lt;?php
  $command = "wget http://mydomain.co/media/bigbigbig.wav";
  $output = shell_exec($command);
  echo $output;
  ?&gt;
  </code></pre>
  
  <p>According to <a href="http://www.php.net/shell_exec" rel="nofollow">http://www.php.net/shell_exec</a> I can possibly expect an output:
  "The output from the executed command or NULL if an error occurred or the command produces no output."</p>
  
  <p>If I run wget_file.php from the command line, I'll see a display of the wget results.
  However, if I run it from a browser, no result is given.  (but the file does indeed download successfully)</p>
  
  <p>I plan to execute the wget_file.php by calling via <code>cUrl</code>, while passing the url + path.
  But would be nice to get a response from the <code>shell_exec()</code>, after execution is completed.</p>
  
  <p>Does anyone know if I'm just missing something to get an output (running in the browser)?</p>