Warning: ZipArchive::getFromName(): Invalid or unitialized Zip object 解决方法
2017-02-28 10:41
981 查看
Warning: ZipArchive::getFromName(): Invalid or unitialized Zip object 解决方法
Excel版本问题。
解决方法:判断当前版本。
$objReader = PHPExcel_IOFactory::createReader('Excel2007');
if(!$objReader->canRead($file)){
$objReader = PHPExcel_IOFactory::createReader('Excel5');
}
$objPHPExcel = $objReader->load($file,$encode='utf-8');
亲试,有效。
Excel版本问题。
解决方法:判断当前版本。
$objReader = PHPExcel_IOFactory::createReader('Excel2007');
if(!$objReader->canRead($file)){
$objReader = PHPExcel_IOFactory::createReader('Excel5');
}
$objPHPExcel = $objReader->load($file,$encode='utf-8');
亲试,有效。
相关文章推荐
- 使用PHPExcel 时报错ZipArchive::getFromName(): Invalid or uninitialized Zip object
- mysql提示[Warning] Invalid (old?) table or database name问题的解决方法
- mysql提示[Warning] Invalid (old?) table or database name问题的解决方法
- Warning -26490: File name in a multipart submit is missing or empty.解决方法
- jspsmartupload Files' name is invalid or does not exist的解决方法
- 转:Warning -26490: File name in a multipart submit is missing or empty.解决方法
- 关于Files' name is invalid or does not exist的解决方法
- Android 解决Map根据地址返回经纬度方法getFromLocationName()不能正常执行
- configSetter(RoleEnvironment.GetConfigurationSettingValue(configName));错误解决方法
- Invalid postback or callback argument问题解决方法
- SSH框架 Bean property * is not writable or has an invalid setter method错误分析与解决方法
- RAC srvctl 命令报 libpthread.so.0 cannot open shared object file No such file or directory 解决方法
- 解决方法:invalid command name "Resource/Energy
- Exce报表生成时出现“Workbook Add(System.Object) Message:Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_
- RAC srvctl 命令报 libpthread.so.0 cannot open shared object file No such file or directory 解决方法
- freemarker.core.InvalidReferenceException: Expression stackObject.value.get(propertyName).toString() is undefined
- ADS 转Keil, ADS升级至MDK常见错误 invalid call from '~PRES8' function to 'REQ8' 解决方法
- 【转】解决方法:invalid command name "Resource/Energy"
- phpcms2008 信息管理 Warning: Invalid argument supplied for foreach() in 问题的解决方法
- Unable to get the project ile from the web server错误的解决方法