I am creating an Excel with PhpSpreadsheet (no prob with that). I am working with MVC pattern so the flow is :
- User press download button and call function in controller
- function in controller call a function in an helpers to create the excel
Now it's a very very long task and I would like to show the progress of this long task (like a download bar). I have tried with all things that I know (ajax polling , iframe, sse, session variable, static variable) but none seem to work.
Could you help me ?
The problem is that if for example I use echo
in the middle of the process, it will collide with the header of the excel created. I have tried also with header_remove()
but it does not work.