Unknown
Unknown

Reputation: 85

PDFTK and PHP exec

My question is, for some reason when I execute the pdftk command to fill a form through PHP, I get an error from pdftk that it can't find the file. I copy the command and paste it on the terminal and it works fine. I am using full paths for the program and the files locations. Any idea what I can do to fix this problem and be able to execute it from the PHP script? I'm using Ubuntu and got the pdftk from the Ubuntu repos.

Thank you

Upvotes: 1

Views: 645

Answers (1)

Unknown
Unknown

Reputation: 85

Nevermind, figured it out. Using dirname and FILE fixed my problem.

Upvotes: 1

Related Questions