Tuesday, 26 January 2010 07:43

PHP Excel Reader

Written by Miguel
  • Print
  • E-mail
  • Share |
  • Be the first to comment!
PHP Excel ReaderWeb Development PHP and Excel

I recently had a request to setup a payment gateway on a website, so that visitors can purchase online. The website was built using MS Publisher and the products were spread across multiple static html pages. Unlike eCommerce websites, this website had no database populating the product catalogue and no shopping cart. My initial thought was to completely scrap the existing website and develop a database driven website from scratch.

As the cost of development proved to be a key factor, the challenge was clear. Find a cost effective solution for visitors to purchase the available products on the website, without redesigning and redeveloping the website, and still provide an easy "no-knowledge-of-code" way, for the client to update his product list and prices.

The first step was to determine the medium in which the client would provide the product list, secondly, the purchasing process and thirdly, how to populate the form posting to the payment gateway for transaction.

The medium was MS Excel. The purchasing process, (though it is not a user friendly way to go about selling your products, but given the circumstance I found no other alternative) was to use a single purchasing form with a drop down list of the products, with the necessary posting data.

The goal was to populate the drop down list with the updated MS Excel. All the client has to do from his side, is update the excel spreadsheet and upload it to the website. Sounds simple, but reading Excel documents to populate html pages is not the easiest of tasks.

The solution, PHP Excel Reader. Thanks to the good people at Google the PHP library has grown from the great work done in the PHP Excel Reader project on SourceForge. It reads the binary format of XLS files directly and can return values and formats from any cell.
Last modified on Monday, 08 March 2010 10:06
Miguel

Miguel

E-mail: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Add comment



Call Us: +27 11 612 7460
LiveZilla Live Help