上传文件的phpexcel异常

时间:2015-07-16 12:05:54

标签: php phpexcel

我正在使用PHPExcel上传xls文件。当我上传这个文件

  

https://drive.google.com/file/d/0B9Hz_h5HT4slblFrSlljTDNwWE0/view?usp=sharing),我在$ objPHPExcel = PHPExcel_IOFactory :: load($ this-> file_path)中有错误;行

chroot()

异常日志:

public function read() {

    $cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_phpTemp;
    $cacheSettings = array('memoryCacheSize' => '100MB');
    PHPExcel_Settings::setCacheStorageMethod($cacheMethod, $cacheSettings);        

    $objPHPExcel = PHPExcel_IOFactory::load($this->file_path);
    $objPHPExcel->setActiveSheetIndex($this->sheet_number);
    $this->data = $objPHPExcel->getActiveSheet()->toArray(null, true, true, true);

    return $this;
}

如何解决此错误?

0 个答案:

没有答案