title: Problems executing Perl scripts from PHP
body: <p>Trying to figure this out. I am trying to execute a perl script within php, using shell_exec() like so:</p>
  
  <pre><code>&lt;?php
  $output=shell_exec("./tst.pl &gt; test.txt");
  //$output=shell_exec("./tst.pl");
  echo $output;
  ?&gt;
  </code></pre>
  
  <p>It will not write output to a file using ">" filename.txt.
  It will work if I execute without directing it to a filename as I can confirm this with echo.</p>
  
  <p>Does this have to do with using ">"?
  Permissions should be fine as I am able to run the same perl script on command line and direct to file. Any suggestions for executing this? </p>
  
  <p>The output of "test.txt" will be used as input:</p>
  
  <pre><code>&lt;?php 
  $data = array(); 
  $InputFile = file("test.txt");
  ...
  ?&gt;
  </code></pre>