title: Run pdftk by php on linux centos
body: <p>I would like to run pdftk on my webserver. It's a Linux Centos with PHP 5.3.2.</p>
  
  <p>When I connect it by commande line I do </p>
  
  <pre><code>pdftk --version
  </code></pre>
  
  <p>It's OK</p>
  
  <pre><code>pdftk A=p1-9.pdf cat A1 output p1.pdf
  </code></pre>
  
  <p>It's OK.</p>
  
  <p>Now, I do this by php :</p>
  
  <pre><code>exec(pdftk A=p1-9.pdf cat A1 output p1.pdf)
  </code></pre>
  
  <p>It isn't OK. Why?? I search about the link of file, but it looks OK.</p>
  
  <p>This doesn't work too :</p>
  
  <pre><code>exec(pdftk --version)
  </code></pre>
  
  <p>I install pdftk with this <a href="https://stackoverflow.com/questions/3146766/how-do-i-install-pdftk-on-my-server">How do I install Pdftk on my server?</a></p>
  
  <p>So what's wrong??</p>
  
  <p>Thank for your help!</p>