Reading Excel files using PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hemanth

    Reading Excel files using PHP

    Hello there,

    Could someone pls give me pointers (or examples) on how to use PHP
    (installed on a linux) to read & write MS Excel spreadsheets. So far
    I've been converting a spreadsheet to text (as tab separated values)
    and processing the text file. I'm wondering if I can avoid this step
    and process the .xls file directly.

    I found a thread in this group - related to this topic - but it says,
    MS excel needs to be installed on target machine to use PHP's COM. I
    assume he's talking about PHP running on windows target machine. How
    can I use a similar approach on linux machine?



    Any help is appreciated.

    Regards,
    Hemanth

  • Geoff Muldoon

    #2
    Re: Reading Excel files using PHP

    hemanth.singams etty@gmail.com says...
    [color=blue]
    > Could someone pls give me pointers (or examples) on how to use PHP
    > (installed on a linux) to read & write MS Excel spreadsheets. So far
    > I've been converting a spreadsheet to text (as tab separated values)
    > and processing the text file. I'm wondering if I can avoid this step
    > and process the .xls file directly.
    >
    > I found a thread in this group - related to this topic - but it says,
    > MS excel needs to be installed on target machine to use PHP's COM. I
    > assume he's talking about PHP running on windows target machine. How
    > can I use a similar approach on linux machine?[/color]

    I found a couple of class files which allow you to read Excel format files
    on any platform:
    Download PHP-ExcelReader for free. PHP Library for read Excel files


    I had also considered another one:


    Geoff M

    Comment

    Working...