Excel File Reader

Hi, i’m using php excel file reader for showing excel file in my application. But after specify path and run it shows error like this


Function split() is deprecated

Extension - http://www.yiiframework.com/extension/php-excel-reader/

code


<?php 

Yii::import('ext.phpexcelreader.JPhpExcelReader');


$data=new JPhpExcelReader(Yii::app()->getBasePath().'/example.xls');

echo $data->dump(true,true);

?>



How it can solve?

Seems, that the extension is not ready for PHP 5.3.

Search for split in the source of the extension and replace it by explode or preg_split.

See: function split

Used preg_split(), but it shows another error "iconv(): Detected an incomplete multibyte character in input string". For showing excel file, is there any other extension or method available in yii?

extension yexcel

But I didn’t test one of these extensions.