PHPExcel - 添加缓存后:ERR_EMPTY_RESPONSE

时间:2013-11-04 16:35:35

标签: php phpexcel

我遇到超出内存限制的问题后,我已将缓存功能添加到我的phpexcel调用中。现在可以完全读取excel,但每次在此之后我都会收到错误:ERR_EMPTY_RESPONSE

以下是我的PHPExcel Call代码:

$cacheMethod = PHPExcel_CachedObjectStorageFactory:: cache_to_phpTemp;
$cacheSettings = array( ' memoryCacheSize ' => '8MB');
PHPExcel_Settings::setCacheStorageMethod($cacheMethod, $cacheSettings);
/** Create a new Reader of the type defined in $inputFileType **/
$objReader = PHPExcel_IOFactory::createReader('Excel2007');
/** Advise the Reader that we only want to load cell data, not formatting **/
$objReader->setReadDataOnly(true);
$excel = $objReader->load($file);

我希望你能帮助我。 谢谢!

0 个答案:

没有答案