Can PHP execute a terminal command
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/503633/executing-linux-commands-with-php">Executing linux commands with PHP</a>  </p>
</blockquote>



<p>I have a PHP file that creates an <code>.xfdf</code> file I am wondering if PHP has a way of executing a command like you would type into the terminal window? I have to run the following command when after the <code>.xfdf</code> file is created to generate the <code>.pdf</code> file</p>

<pre><code>pdftk /var/www/pdf/TimeCard.pdf fill_form /var/www/pdf/results/Brandon_01_23_13.xfdf output /var/www/pdf/results/testNew.pdf flatten
</code></pre>

<p>The command would need to be able to accept a PHP variable so its customized for the user. Is there an easy way to do this?</p>
