I need to automatically update some price lists in Excel on my site on a daily basis. I used PHPExcel for that, but it takes a lot of memory (about 900 Mb) to generate 1 file with only 40000 lines and 11 columns, which is not available on my Linux hosting server. All Google results point to PHPExcel only. I wonder if there is any command line utility which allows to do the same thing, but consuming less memory, so I could run it on my Linux server using cron? I need to use some formatting and formulas in my Excel file, this makes CSV and HTML into non-options.
Of course, I may connect to MySQL from a Windows Server machine, generate Excel files in actual Excel there and then upload them to the server, but this option seems quite hacky for me.
Added:
I’m now deciding between PERL, Python and Java modules, choosing the one which consumes less resources on large files and is easier to use; any comment on this topic is welcome.
Also any other solutions are accepted.
The easiest option to me was to use python-excel library. Though I never wrote anything on python, it took me only a couple of hours to actually make the things work with it and it works much faster, than PHPExcel and consumes less memory (about 300 Mb on my largest file, comparing to 900 Mb for php). But if you are looking for the solution of similar problem, tools, provided in the other answers, may suite your need as well.