To overcome the memory limitations of PHPExcel, we have used Python's openpyxl library to generate the Excel files and sending the data to be saved in Excel files from PHP using thrift.
Now we have created several clients in an array of objects and try to generate multiple excel files at the python side at once. We are able to do so when we are setting the optimized_write to False, but not able to do the same when optimized write flag is set to True.
$ob[$X][$Y] = new PhpPythonExcel();
$ob[$X][$Y]->client->openExcel(True); //openExcel method sets optimized_write flag to True of False.
...
//write something to the files.
...
$ob[$X][$Y]->client->saveFile($fileName);
Is it possible to do so, or any hack available?