最初的做法
| 代码如下 | 复制代码 |
|
include 'classes/PHPExcel/IOFactory.php'; $inputFileName = $target;
$objPHPExcel = $objReader->load($inputFileName); '; } |
|
报错
PHPExcel_Reader_Exception: The filename .1443578799.xlsx is not recognised as an OLE file in ClassesPHPExcelSharedOLERead.php on line 89
( ! ) Fatal error: Uncaught exception 'PHPExcel_Reader_Exception' with message 'The filename 1443578799.xlsx is not recognised as an OLE file' in ClassesPHPExcelSharedOLERead.php on line 89
( ! ) PHPExcel_Reader_Exception: The filename 1443578799.xlsx is not recognised as an OLE file in ClassesPHPExcelSharedOLERead.php on line 89
Call Stack
碰到这个问题我们是因为xlsx出错了,可能通过类型判断 解决办法如下
| 代码如下 | 复制代码 |
|
if( $extension =='xlsx' ) |
|
这样再操作会发现问题已经解决了。
韩剧再婚皇后阿里云盘全集高清1080P资源链接-韩剧再婚皇后免费阿里云盘资源下载4K高清无删减版链接
poipiku网站如何打开-poipiku官网网页版访问入口
明日方舟:终末地-云游戏畅玩入口-明日方舟:终末地-网页版在线直连地址
poki在线小游戏网页版-poki免费游戏大全入口
poki游戏入口-点开即玩-poki游戏-在线免费畅玩
原神akt大佬资源viciNeko入口链接-原神akt大佬资源网页vicineko入口链接分享