Details
Description
Hi,
I'm using php to generate the xml, xsl and trigger the fop to generate the pdf file. Actually fop saves the file within my web folder (/var/www/project/web/) but I want to save the files to the folder '/var/www/project/web/pdf/'.
So my command looks (like I read on some tutorials) like this: echo shell_exec('fop -xml books.xml -xsl books.xsl -pdf ' . '/var/www/<project>/web/pdf/' . $rechnungsnummer . '.pdf');
The Content is right and the name of the file is right but the save path is wrong. I also tried to use "/web/pdf/" and only "/pdf/" instead of the full path but everytime it saves the files to the web folder. And it throws no failure exception.
Do you have any Idea why this could happen? Is this my fault or a bug in the fop? I couldn't figure it out.
At least: My folders project/ web/ and pdf/ got owner: www-data:www-data and mod 777 for my tests. So the rights can't be the problem, right?
Best regards