Answer the question
In order to leave comments, you need to log in
How to open read-only xls files using Spreadsheet_Excel_Reader?
The Spreadsheet_Excel_Reader library does not open read-only xls files.
In case the $data->sheets file, which is protected from editing, is passed, it turns out to be an empty array.
At transfer of normal xls - everything works.
$data = new Spreadsheet_Excel_Reader();
$data->setOutputEncoding('utf-8');
$data->setUTFEncoder('mb');
$data->read($upload_file);
Answer the question
In order to leave comments, you need to log in
Have you tried copying to a temporary file and opening from there?
If you cannot write to the file system and the file fits into memory, then streamWrapper will help you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question