You’ve already seen, in previous articles, just how easy it is to read and write Microsoft Excel spreadsheets with PHP and PEAR. But spreadsheets are just one way of representing structured data – the other, of course, is to use a database. Well, guess what? If your database happens to be Microsoft Access, PHP has you covered there as well!
In this article, I’ll introduce you to PHP’s MDBTools extension, which provides an API to programmatically read data from Microsoft Access database files. If your project involves working with such files, extracting database records either for calculations or for conversion to other formats, you’ll find this extension invaluable. Come on in, and see how it works!

PHP is the market-leading dynamic language for producing modern Web applications. Its popularity for building content management and e-commerce systems stems from its portability, ease of use, and wide support for accessing database and enterprise data sources. IBM and Zend Technologies have partnered to deliver Zend Core for IBM®, which is the industry’s only certified and fully supported PHP development and production environment for IBM data servers.