General notes
Spreadsheet_Excel_Reader ("PHP-ExcelReader") is not available as a PEAR
package. It is available on SourceForge.net:
http://sourceforge.net/projects/phpexcelreader/
This class expects the file reader.php in the directory Spreadsheet/Excel/.
Please note that the current version (2i) of Spreadsheet_Excel_Reader contains
a die() statement in the read() method in reader.php (line 171). This makes
a reasonable PEAR error handling for the "file not found" error impossible.
It is therefore recommended that you replace the die() statement by something
like this:
return PEAR::raiseError('The filename ' . $sFileName . ' is not readable'); |
This class is optimized for the changed code (but will work also with the
die() in the reader class, of course), and provides then a reasonable error
handling.