Translator

Warning: require_once(Spreadsheet/Excel/Reader/OLERead.php)

I am now developing web application that requires to read and write to excel file. So my first milestone is to read it.  I have choosen PHP Excel Reader to read the excel.

I have encounter the problem:

Warning: require_once(Spreadsheet/Excel/Reader/OLERead.php) [function.require-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\phpexcel\Excel\reader.php on line 31

Fatal error: require_once() [function.require]: Failed opening required ‘Spreadsheet/Excel/Reader/OLERead.php’ (include_path=’.;\xampp\php\PEAR’) in D:\xampp\htdocs\phpexcel\Excel\reader.php on line 31

Solving:

1) Open the reader.php file from the Excel folder. Remove the below code from the top of the line.
require_once ‘Spreadsheet/Excel/Reader/OLERead.php’;

2) And add the below code after remove that.
require_once ‘Excel/oleread.inc’;

Source:  http://icfun.blogspot.com/2009/09/php-warning-requireoncespreadsheetexcel.html

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks

One Response to “Warning: require_once(Spreadsheet/Excel/Reader/OLERead.php)”

  • Rafiq7s:

    This portion is solved but faced another new problem:
    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 33030145 bytes) in ……Excel\oleread.inc on line 172

    How to solve this?

Leave a Reply