
用 php Win32 OLE
##Using OLE;
read('Book1xls');
// print number of rows, columns and sheets
echo "Number of sheets: " sizeof($excel->sheets) "\n";
for ($x=0; $xsheets); $x++) {
echo "Number of rows in sheet " ($x+1) ": " $excel->sheets[$x]["numRows"] "\n";
echo "Number of columns in sheet " ($x+1) ": " $excel->sheets[$x]["numCols"] "\n";
产生原因:可能是相关软件(例如office/wps)安装不完整或者版本不规范,导致附件预览的插件不能正常启用。foxmail提供的是office和wps插件的接口,如果版本不规范,会导致office/wps附件预览的插件不能正常启用,从而不能正常预览附件。
解决办法:升级相应软件的版本或者重新安装完整版。
以上就是关于php读取excel并写入到数据库全部的内容,包括:php读取excel并写入到数据库、PHP7.0 为什么读取不了Excel文件内容、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)