beibeicae 发表于 2014-5-12 01:31:08

php+mySQL导入excel数据问题!

CMS系统中,导入excel数据问题:
利用excel类库,包含reader.php和oleread.inc文件,
可以正确导入,但是总是提示这个错误:
PHP code
?

1
Strict Standards: Assigning the return value of new by reference is deprecated in D:\centropoint_cms\lizong\Excel\reader.php on line 261






我查看了,reader.php的第261行,代码是:
PHP code
?

1
2
3
4
5
    function Spreadsheet_Excel_Reader()
    {
      $this->_ole =& new OLERead();//261
      $this->setUTFEncoder('iconv');//262
    }






不知道如何改,请教高手了。

beibeicae 发表于 2014-5-12 01:31:48

小问题,先试试把 =& 改成 = ,看看有没有问题

如果不行就:
$this->_ole =& new OLERead();
改成
@$this->_ole =& new OLERead();
页: [1]
查看完整版本: php+mySQL导入excel数据问题!