tags:

views:

1743

answers:

4

I'm trying to read an Excel file (Office 2003). There is an Excel file that needs to be uploaded and its contents parsed.

Via Google, I can only find answers to these related (and insufficient topics): generating Excel files, reading Excel XML files, reading Excel CSV files, or incomplete abandoned projects. I own Office 2003 so if I need any files from there, they are available. It's installed on my box but isn't and can't be installed on my shared host.

Edit: so far all answers point to PHP-ExcelReader and/or this additional article about how to use it.

+3  A: 

Zend Article

NTulip
While the link is good, the text is not. It's not Zend Framework on that page. Correct it before you get some down votes.
Ionuț G. Stan
Ionut - mersi - i already changed it.
NTulip
+8  A: 

You have 2 choice as far as I know:

  1. Spreadsheet_Excel_Reader, which knows the Office 2003 binary format
  2. PHPExcel, which knows both Office 2003 as well as Excel 2007 (XML).

PHPExcel uses Spreadsheet_Excel_Reader for the Office 2003 format.

Update: I once had to read some Excel files but I used the Office 2003 XML format in order to read them and told the people that were using the application to save and upload only that type of Excel file.

Ionuț G. Stan
Aren't these both for generating and not for reading?
Dinah
They both allow for reading and writing.
NTulip
@NTulip: I see nothing in the feature lists or documentation of either to suggest that they can read from Excel files. Any examples?
Dinah
@Dinah, you're right. I made the appropriate changes in my response.
Ionuț G. Stan
+3  A: 

I use PHP-ExcelReader to read xls files, and works great.

Luis Melgratti
+1  A: 

use http://www.dbTube.org

Tim Burton