Open OM-Tecnologia opened 1 month ago
As you can see the error is raised because PHP has no permissions to open a file handle at the path given in $destFile
. It is simply up to you to pass a path with the correct permissions. So this is not an issue in FPDF or FPDI but you can also trigger that problem in your own scope by simply calling:
$fh = fopen($destFile, 'wb');
Hello, thanks for your answer.
I did the fopen in the same scope and it works.
Mhh ok strange. @JanSlabon's line from above may not trigger an error immediately but if the result $fh is FALSE it also failed. Have you checked against the result?
I don't know what else i need to do, i already gave the permission (but i think it's not even needed)
failed to open stream: Permission denied in line /Includes/fpdi/fpdf.php on line 1046 FPDF error: Unable to create output file: book_protected.pdf fpdf.php line 1046: $f=fopen($name,'wb');
My code:
Did i miss something?