Parse error: syntax error, unexpected 'new' (T_NEW) in excel-reader.php on line 869

ساخت وبلاگ
So, i try to make a file where it should enable me to upload an excel file into mysql database, while i'm making the file, this file encounter one syntax error(this file is used to read the excel file).
the error says: Parse error: syntax error, unexpected 'new' (T_NEW) in excel-reader.php on line 869

i have research about this beforehand, and the solution seems to be simple, where i just need to remove the "&" symbol from the code. the problem is, even after i remove the symbol, the error still there and didn't solved yet. so is there anything that i do wrong here?
thanks for your attention

here is code before i edit it:
Code:

function Spreadsheet_Excel_Reader($file='',$store_extended_info=true,$outputEncoding='') {
                $this->_ole =&new OLERead();
                $this->setUTFEncoder('iconv');
                if ($outputEncoding != '') {
                        $this->setOutputEncoding($outputEncoding);
                }
                for ($i=1; $i<245; $i++) {
                        $name = strtolower(( (($i-1)/26>=1)?chr(($i-1)/26+64):'') . chr(($i-1)%26+65));
                        $this->colnames[$name] = $i;
                        $this->colindexes[$i] = $name;
                }
                $this->store_extended_info = $store_extended_info;
                if ($file!="") {
                        $this->read($file);
                }
        }

here is after i edit it with removing the &(even typing the new in caps doesn't work):
Code:

function Spreadsheet_Excel_Reader($file='',$store_extended_info=true,$outputEncoding='') {
                $this->_ole = NEW OLERead();
                $this->setUTFEncoder('iconv');
                if ($outputEncoding != '') {
                        $this->setOutputEncoding($outputEncoding);
                }
                for ($i=1; $i<245; $i++) {
                        $name = strtolower(( (($i-1)/26>=1)?chr(($i-1)/26+64):'') . chr(($i-1)%26+65));
                        $this->colnames[$name] = $i;
                        $this->colindexes[$i] = $name;
                }
                $this->store_extended_info = $store_extended_info;
                if ($file!="") {
                        $this->read($file);
                }
        }

CodingForums...
ما را در سایت CodingForums دنبال می کنید

برچسب : نویسنده : codingforums بازدید : 275 تاريخ : پنجشنبه 30 آذر 1396 ساعت: 23:15