phpexcelreader read()文件不可读,但可读,工作正常
尝试探索代码,似乎错误是由以下给出的:phpexcelreader read()文件不可读,但可读,工作正常,php,phpexcelreader,Php,Phpexcelreader,尝试探索代码,似乎错误是由以下给出的: include 'xlread/excel_reader.php'; $excel = new PhpExcelReader; $file = 'C:/xampp/htdocs/aus/engg20/engg20/upload/xls/xls-1603808908.csv'; if(is_file($file) && file_exists($file) && is_readable($file)) echo('File
include 'xlread/excel_reader.php';
$excel = new PhpExcelReader;
$file = 'C:/xampp/htdocs/aus/engg20/engg20/upload/xls/xls-1603808908.csv';
if(is_file($file) && file_exists($file) && is_readable($file)) echo('File found'); //this works
$excel->read('C:/xampp/htdocs/aus/engg20/engg20/upload/xls/xls-1603808908.csv'); //this gives The filename C:/xampp/htdocs/aus/engg20/engg20/upload/xls/xls-1603808908.csv is not readable
已定义标识符\ OLE:
if (substr($this->data, 0, 8) != IDENTIFIER_OLE) {
//echo 'Error';
$this->error = 1;
return false;
}
我不知道如何修理它。请帮忙
define('IDENTIFIER_OLE', pack("CCCCCCCC",0xd0,0xcf,0x11,0xe0,0xa1,0xb1,0x1a,0xe1));