ani
(Aneesh)
May 27, 2014, 10:56am
1
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?
joblo
(Joe)
May 27, 2014, 4:07pm
2
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
ani
(Aneesh)
May 28, 2014, 4:09am
3
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?
joblo
(Joe)
May 28, 2014, 5:32am
4
extension yexcel
But I didn’t test one of these extensions.