
Gowtham - 2013-11-22 05:50:21
Hi,
I have been using simplexlsx class for importing excel datas. But for past few days i have problems in importing documents with .xlsx extension.while .xls files work perfectly. When i try to upload .xlsx file, it shows a error message like "Warning: Invalid argument supplied for foreach()".
Small part of my coding is
require_once('../includes/excel/simplexlsx.class.php');
$xlsx = new SimpleXLSX('../includes/excel/uploads/'.$file_name);
It tells that the variable $xlsx->rows() is empty,but i am sure that $file_name has a valid file which contains data.I have updated my class file by replacing a new one too.Nothing happens.
Please help me regarding this.
Thanks :)