3

What is the best php library to use to with php to read/write and display components of excel files on web based pages?

Rahul Kanodia
  • 105
  • 12
user434885
  • 1,988
  • 6
  • 29
  • 51
  • Do you want just BIFF .xls files (up to MS Excel 2003), or Office Open XML .xlsx files (Excel 2007 onwards), or both? – Mark Baker Feb 09 '11 at 10:37

2 Answers2

7

I would use PHPExcel for writing the files (in fact, I do use it)

http://phpexcel.codeplex.com/

And you could try

http://sourceforge.net/projects/phpexcelreader/

for reading but I have no experience with reading Excel files in PHP, only writing them.

Dai
  • 1,510
  • 1
  • 11
  • 12
1

For my mind it is the best library: Spreadsheet_Excel_Writer

Alex Pliutau
  • 21,392
  • 27
  • 113
  • 143
  • Although Spreadsheet_Excel_Writer can't read Excel files – Mark Baker Feb 09 '11 at 10:38
  • What??? Spreadsheet_Excel_Writer read files very well. – Alex Pliutau Feb 09 '11 at 11:33
  • OK! I stand corrected... I've never found any method of accessing data from an existing workbook file using Spreadsheet_Excel_Writer, but I'm not over-familiar with it. It's not something I would have expected either, given the name, so I've never searched for reading functions that closely in the code. – Mark Baker Feb 09 '11 at 14:14