title: exec command works in terminal not with PHP
body: <p>I'm writing a class who let me access to <strong>recutils</strong> through PHP.</p>
  
  <p>I have a 'database' file called books.rec in ../database/ and a script who runs my Recutils.php class.</p>
  
  <p>My class simply launch system application with correct parameters.</p>
  
  <p>But When I try to use <code>recins</code> with PHP's <code>exec</code> function, the command doesn't work will it work in command line.</p>
  
  <p>This is the command that is executed by my script : </p>
  
  <p><code>recins -f Title -v "Moi" -f Author -v "Moche" -f Location -v "loaned" -t Books ../database/books.rec</code></p>
  
  <p>With PHP : Nothing, the record is not inserted (no error message at all too).<br>
  In terminal : OK, the command is well done and my record is inserted.</p>
  
  <p>I also have a method to do a <em>select</em> operation using <code>recsel</code> and it works very well, will it use exactly the same file (and runs from <code>exec</code> too).</p>
  
  <p>So, could someone explain me why the command don't work will another with the same file work ?</p>
  
  <p>Thanks</p>
  
  <p>PS : Further informations : <a href="http://www.gnu.org/software/recutils/" rel="nofollow">http://www.gnu.org/software/recutils/</a></p>