Possible Duplicate:
Executing linux commands with PHP
I have a PHP file that creates an .xfdf
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 .xfdf
file is created to generate the .pdf
file
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
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?