I'm working on the admin portion of an ecommerce site, where the admin can filter and export customers for Excel. The process basically goes like this:
Run a query to get all the customers. On each customer, run several queries to get info about number of past orders, current credit status, any certifications and their statuses, etc.
Iterate through all the results into an HTML template and set that as a session variable.
Display the number of results as a link.
Clicking the link sets headers for MS-Excel and echoes the content of the session variable as an attachment with a .xls filename.
Browser prompts to download or open in Excel and all displays as expected.
As long as I have less than 5780 records everything works fine. As soon as I hit 5781 records, instead of getting the filter UI and number-of-results screen, I get the output of the session variable directly to screen.
It looks like ALL the records are there. Nothing is getting lost. I viewed source and copied/pasted into text, and it opens in Excel with all data present. But I seem to have exceeded some threshold of size or time or something and so PHP is refusing to execute the rest of my code. The file size looks to be about 1.1MB.
I'm still troubleshooting, but does this raise any flags? Is it possible there's a php config value that isn't set properly, or should be increased?
Thanks!