PHP 7.x connection with MSSQL server with MAMP
I am trying to connect mssql server to PHP 7.0.8 through MAMP. I have tried using freetds. On some blog people are saying to use pdo_dblib.so extension but it's not working. Please guide me through the process of connection. Vague Space Follow this guide through step 3: Microsoft PHP drivers for SQL Server Find where pecl drops extensions in your local machine Copy the files pdo_sqlsrv.so and sqlsrv.so into your MAMP's PHP extension directory. Mine was located at /Applications/MAMP/bin/php/php7x.x/lib/php/extensions/no-debug-foo-bar Edit your php.ini file to include the new extensions: