I use fpdf
to create a pdf
document using php. It works but sometimes it can take a long time to produce the finished report and if the time takes over 60 seconds I get the 500 Internal Server Error.
I have spoken my service provider and they have told me that this setting cannot be overridden programatically (such as max_execution_time) and that I need to keep their server aware that the page is still running. They said that a good way to do that is to have progress bar but unfamiliar with fpdf
.
This would be a great additional feature as well as solving the problem, however fpdf
does not allow any output client side as it will give the error
FPDF error: Some data has already been output, can't send PDF file
So my question is either,
Is there any way you a progress bar can be displayed while an fpdf is being generated? (I have looked at this question progress bar while opening pdf using fpdf but it doesn't seem to address the 'data already outputted' error)
or
If this is not possible is there a way for 'talking' to the Apache server during the process of generating the pdf to let it know the page is still busy working on it?