MAMP Pro and PDO-dblib

1k views Asked by At

For some days I've been using MAMP Pro 3.07 from http://www.mamp.info. Great tool and all works fine. But now I have the problem, that for a new project I need to connect to MSSQL.

I searched for a howto the last 3 hours in www, but canĀ“t find a working answer or am I to stupid?

Is there a possibility to install "PDO-dblib" on MAMP on OSX Yosemite?

Or can somebody explain me how I can do this?

Thanks in advance!

1

There are 1 answers

1
Elzo Valugi On

From PHP website:

PDO_DBLIB: This extension is not available anymore on Windows with PHP 5.3 or later.

I see MAMP allows you to use different versions of PHP, so if you choose php 5.1.6 it may work. There is also a comment there from a guy who wrote its own class for this purpose. I am adding you also the pecl repository for this PDODblib.

Apart of this I am recommending you to use the latest version of PHP and do not rely on maintained extensions. PDO, which comes now by default with PHP, allows you to connect to MSSQL databases and you can find documentation here and here.