I then doubled the amount and then also tried 1024MB. The function above reads data from an excel table to an array.Īt first, I allowed PHP to use 256MB of RAM. Return array($arrayOriginalColumnNames, $arra圜olumnNames, $arrayData) $arrayData = $cell->getCalculatedValue() capitalize the first letter of each word $cellIterator->setIterateOnlyExistingCells(false) // Loop all cells, even if it is not set $arrayData = $arrayOriginalColumnNames = $arra圜olumnNames = array() $rowIterator = $objPHPExcel->getActiveSheet()->getRowIterator() $objPHPExcel = $objReader->load($theFilePath) $objReader = PHPExcel_IOFactory::createReader($inputFileType) Require_once('PHPExcel/Classes/PHPExcel.php') I might be doing something horribly wrong here: function ReadXlsxTableIntoArray($theFilePath) The XSLX table is about 3MB large yet even 1024MB of RAM is not enough for PHPExcel to load it into memory?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |