Hi, if you create the file yourself, you just need to start browser output while you are working on the file and clear the memory of any lines you have produced.
I had the same problem, using an array to store all CSV lines, so I count how many lines I have and if it goes over a limit, I print them out and restart. On Thu, Sep 2, 2010 at 7:42 PM, Gareth McCumskey <[email protected]> wrote: > Hi all, > I need some assistance in creating an action that will generate a CSV file > on the server and then push that file for download to the end user. I have > written the code to build the csv file and that works no problem. I have > found plenty of stuff online about altering the response headers, etc in > preparation for the download but they all end up loading the file to > download into memory (using readfile()) and I would rather not do that as > these CSV could get very very large potentially. Any tips anyone can share? > -- > Gareth McCumskey > http://garethmccumskey.blogspot.com > twitter: @garethmcc > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
