Forum Moderators: coopster
So... I obviously don't run Microsoft technologies (Unix, PHP, MySQL, etc...), and therefore have to find a way to read it anyway.
I have found a commercial solution, but that's out of the question. I have also found several free scripts, but they simply don't work. For example, we have "Spreadsheet_Excel_Reader". It works fine for its EXAMPLE file, but when I feed it my actual XLS, it "cannot read it". Ie: it's not working. It's broken.
How the heck am I supposed to read a non-open file format?
Those are your options:
- buy a commercial PHP XLS reader that actually works --or--
- open and resave the file in a format PHP can easily work with.
madmac: Well... the idea was to automate it. I've kind of settled with doing a weekly download of their inventory XLS file, manually save it as CVS (tabs and lines) and then run a PHP script to truncate the MySQL table and insert the new data.
I just wish the format was open. I like automated stuff.
Excel files are in BIFF format, and Microsoft publishes the format information in their Excel SDK. How do you think all those other programs are able to import XLS files? Most probably don't "hack" it but read it in binary format and convert. This is how the 2 commercial PHP solutions that I know about work. It does take alot of work and knowledge to do this though, which is why you'll find they are not free. One is pretty expensive, but the other is pretty reasonable. If you want to automate it, an $80 investment isn't that much.
You could also read the BIFF format docs and write your own, but IMO, $80 is probably cheaper.
Reverse engineering... The only available docs that I know of are made by people other than MS...