Getting SQLSRV Extension Working with PHP: An Alternate to Deprecated MSSQL
The removal of mssql support in PHP 5.3 has prompted many users to seek alternatives. One such option is the SQLSRV extension from Microsoft. Here's a comprehensive guide to get SQLSRV working with your PHP installation:
Download the SQLSRV Drivers:
Extract and Place the Files:
Edit php.ini:
Open your php.ini file and add the following line at the end:
extension=php_sqlsrv_53_nts_vc9.dll (for PHP 5.3, non-thread-safe, VC9 compiler)
Restart Web Server:
Additional Notes:
The above is the detailed content of How to Replace Deprecated MSSQL with SQLSRV Extension in PHP?. For more information, please follow other related articles on the PHP Chinese website!