PHP uses Phpexcelreader to read Excel error summary ____php

Source: Internet
Author: User



PHP uses Phpexcelreader to read Excel error summary as follows:

Error One: Deprecated:assigning the "return value of" of new by reference was deprecated in assigning the "return value of" by Refe Rence is deprecated into E:\WebSite\htdocs\EXCEL2\Excel\reader.php on line 261
This is php5.3 later version of the issue, php5.3 the following version does not appear
$this->_ole =& New Oleread ();
To
$this->_ole = new Oleread ();
php5.3 started, the abolition of the "=&" symbol in PHP, so want to copy, directly with = reference can

Error two: Warning:require_once (spreadsheet/excel/reader/oleread.php) [Function.require-once]: failed to open Stream:no Such file or directory in E:\WebSite\htdocs\EXCEL2\Excel\reader.php on line 31
Ways to modify:
Will require_once ' spreadsheet/excel/reader/oleread.php ';
Instead: require_once ' oleread.inc ';

Error Three:
Notice:iconv () [Function.iconv]: detected an illegal character into input string in D:\wamp\www\phpExcelReader\Excel\reade r.php on line 1056
Ways to modify:
Will example.php inside the
$data->setoutputencoding (' CP1251 ');
To
$data->setoutputencoding (' UTF-8 '); Or if your program code is GBK, change to GB2312.

Error Four:
Fatal error:maximum execution The seconds exceeded in E:\WebSite\htdocs\EXCEL2\Excel\oleread.inc on line 172
Download the inside of the Jxlrwtest.xls this Excel file has errors, please create a

Download Address: http://sourceforge.net/projects/phpexcelreader/





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.