作者b95170088 (夏恋秋分)
看板PHP
标题[请益] phpexcel 无法读取xlsx问题
时间Tue Dec 1 16:37:29 2015
小弟先贴上程式
include("./phpexcel/Classes/PHPExcel/IOFactory.php");
include("./phpexcel/Classes/PHPExcel/Writer/Excel2007.php");
include('./phpexcel/Classes/PHPExcel.php');
##读取上传EXCEL档
$reader = PHPExcel_IOFactory::createReader('Excel2007');
$PHPExcel = $reader->load($_FILES['strFile']['tmp_name']);
我上传的档案是excel 2010的档案
php版本是5.6
php.ini 也有设 extension=php_zip.dll
网路上实在找不到有人不行读取的文章,想问有人有遇到同样的问题吗
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 203.70.208.14
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/PHP/M.1448959055.A.63B.html
1F:推 hwChang: 不知道 League/Csv Library 是否能读 xlsx 12/05 23:46
2F:→ b95170088: 已解决!原来我上传的时候存的是xls不是xlsx所以失败 12/17 13:29