0

I am facing one issue with PHP spreadsheet reader https://github.com/nuovo/spreadsheet-reader , it is reading all formats file except .xlsx , in case of .xlsx script was not running

require($docroot.'/inc/filereader/excel_reader2.php');
require($docroot.'/inc/SpreadsheetReader.inc.php');             
$Spreadsheet = new SpreadsheetReader("filepath");

When i am executing php script at my localhost, SpreadsheetReader reading .xlsx file and returning desired result, but when i am trying to run same code on some server then it is only executing for(.csv,.xls,.txt) but not for .xlsx.

I have already checked folder and file permissions for above issue at server.

What may be problem here?

4

2 回答 2

0

实际上date_default_timezone_set('Asia/Calcutta'); 未在电子表格阅读器中设置,它正在引发异常

于 2013-06-15T07:42:07.857 回答
0

xlsx 文件实际上是一个 zip 文件,其中包含作为一组 xml 文件的电子表格有效负载。这意味着您需要一个加载了 zip 和 xml 支持模块的 php 实例。检查是否加载了正确的模块的最简单方法是执行phpinfo,像这样

<?php
phpinfo();
?>

如果未加载正确的模块,您可能必须联系您的网络托管服务商。

于 2013-05-30T12:22:44.083 回答