I went through several questions and recommendation to resolve the above issue, but No luck at all.
I have the following settings:
Windows Server
I have struggled through the process and this is what has finally worked. I am using php 5.4.16 and Apache 2.4.4 with Sql Express 2008 R2.
Download Microsoft Drivers for PHP for SQL Server from Microsoft download site
Extact the files to a local folder
What worked for me on windows 10 64bit and php 5.6. is the 3.2 version of the driver downloaded from here:Microsoft SQL Server driver for PHP
Load the PHP drivers in php.ini file and restart the server.
extension=php_sqlsrv_53_ts.dll
extension=php_pdo_sqlsrv_53_ts.dll
Reference: http://technet.microsoft.com/en-us/library/cc296203(v=sql.105).aspx
TS denotes thread safe. find your server is thread safe or non thread safe