Postingan lainnya
Error membuat file excel
Kenapa saat membuat file excel selalu error. saat jumlah usernya dibatasi normal tapi saat jumlah usernya full (-+ 5000 user) selalu error
error code Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 16 bytes) in C:\xampp\htdocs\hrfast\functions\Classes\PHPExcel\Shared\Font.php on line 561
ada yg mengerti maksudnya apa?
0
2 Jawaban:
coba dikasih cache mas
$cacheMethod = PHPExcel_CachedObjectStorageFactory:: cache_to_phpTemp;
$cacheSettings = array( ' memoryCacheSize ' => '8MB');
PHPExcel_Settings::setCacheStorageMethod($cacheMethod, $cacheSettings);
$objReader = PHPExcel_IOFactory::createReader('Excel2007');
$objPHPExcel = $objReader->load("test.xlsx");
0