Jump to content

Excel File Handling - PHP


apulmca

Recommended Posts

i had the same problem not long ago. i found this:

http://www.codeplex.com/PHPExcel

which works beautifully. i couldn't find much good documentation for reading excel files (but quite a bit for writing them), so i had to read through the code and figure out which functions to call, and what results to expect. PM me if you need any help with this.

Link to comment
Share on other sites

I'd recommend PHPExcel as well... partly because I'm one of the development team; but also because it's still an ongoing project with regular releases to add new functionality, whereas the phpexcelreader project on sourceforge appears to have stagnated.

 

PHPExcel allows you to both read and write Excel (Excel 5 xls and Excel 2007 xlsx) files (and write to a variety of other formats as well). You can also manipulate the data within the workbook, and it handles over 200 of Excel's 351 functions for calculating values including complex formulae.

 

While the documentation isn't perfect, there's a full set of API docs, and sample code; and a helpful forum on the codeplex site.

Link to comment
Share on other sites

@mark baker: well, i guess i need to thank you for making my life extremely easy lately. so thanx  ;D but please tell the devs to comment their code... :P

I'll pass it on... at the moment I'm wading through the classes doing a lot of minor performance tweaks; so I should probably be adding more comments myself as I'm doing so... and more comments for the phpdocs as well.

 

And for the benefit of people who might stumble upon this thread while looking for a way of using HTML/Ajax to edit Excel in a web page, I'm doing some work on some special front-end stuff to handle that as well

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.