I am having an issue. I am upgrading a web server with a new server. The previous server used IIS6, PHP, with ISAPI and works fine. On the new server I have purchased a new server, installed PHP but the newest version of PHP now wants CGI. No problem, set this all up and the site works except for areas I use passthru to modify PDFs. Started testing and it appears passthru or exec are not doing nothing.
Here is a test file I created.
echo "TEST PDFTK<br>";
$fname = $uploaddir.$storybookID.".txt";
$command = "pdftk D:\book\Images\Originals\SASAKJ5FT.pdf dump_data output d:\book\Images\Originals\SASAKJ5FT.txt";
echo "command ".$command."<br>";
passthru($command); //run the command
It should create a text file from the document, but from php it does nothing. From command line on the server it works fine. Some of the items I have tried was changing permission on the site to read write execute on the website thinking it may not have permissions to create the file, but this did not work.
Checked the PHP.ini file and I am not running in safe mode.
Not sure what else to check, but will continue troubleshooting.