There is a new way of doing it since PHP 3.2 after php_mssql.dll got discontinued.
Start by downloading this Microsoft driver for PHP http://sqlsrvphp.codeplex.com. Read readme to determine which file(s) will match your PHP. Next copy those file to your extension folder of your PHP install, and adjust your php.ini by adding or uncommenting those two lines:Read More