Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: How to unload the excel file loaded before?

$
0
0
A PHPExcel object can't easily be destroyed because the hierarchy of spreadsheet->worksheets->cells contains cyclic references in that the cell also references the worksheet, and the worksheet references the spreadsheet, so special methods are needed to clear it from memory (as described in section 4.3 of the developer documentation, Clearing a Workbook from memory).
$objPHPExcel->disconnectWorksheets();
unset($objPHPExcel);
This should free up a more memory from the PHPExcel object for you

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>